diff options
author | eric thul <thul.eric@gmail.com> | 2015-04-12 11:08:05 -0400 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-04-12 11:24:24 -0400 |
commit | 464355c740940df632eef951c6c84eb2767b5ab3 (patch) | |
tree | 7502e52f50bc36c34ff83dc710c1e0904c90fdc5 /example/webpack.config.js | |
parent | c194f84cab66fa6e18b78c32f9cdf2bddf8d1e68 (diff) | |
download | purs-loader-464355c740940df632eef951c6c84eb2767b5ab3.tar.gz purs-loader-464355c740940df632eef951c6c84eb2767b5ab3.tar.zst purs-loader-464355c740940df632eef951c6c84eb2767b5ab3.zip |
Updating example and adding publishing
Resolves #7
Diffstat (limited to 'example/webpack.config.js')
-rw-r--r-- | example/webpack.config.js | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/example/webpack.config.js b/example/webpack.config.js index 629138a..19997f3 100644 --- a/example/webpack.config.js +++ b/example/webpack.config.js | |||
@@ -1,16 +1,18 @@ | |||
1 | var path = require('path'); | 1 | var path = require('path'); |
2 | 2 | ||
3 | module.exports = { | 3 | var config |
4 | entry: './src/entry', | 4 | = { entry: './src/entry' |
5 | output: { | 5 | , output: { path: __dirname |
6 | path: path.join(__dirname, 'dist'), | 6 | , filename: 'bundle.js' |
7 | filename: 'app.js' | 7 | } |
8 | }, | 8 | , module: { loaders: [ { test: /\.purs$/, loader: 'purs-loader' } ] } |
9 | resolve: { | 9 | , resolve: { modulesDirectories: [ 'node_modules', |
10 | modulesDirectories: [ | 10 | 'output' |
11 | 'node_modules', | 11 | ] |
12 | 'web_modules', | 12 | , extensions: ['', '.js', '.purs'] |
13 | 'output' | 13 | } |
14 | ] | 14 | , resolveLoader: { root: path.join(__dirname, 'node_modules') } |
15 | } | 15 | } |
16 | }; | 16 | ; |
17 | |||
18 | module.exports = config; | ||