aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/webpack.config.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-04-12 11:08:05 -0400
committereric thul <thul.eric@gmail.com>2015-04-12 11:24:24 -0400
commit464355c740940df632eef951c6c84eb2767b5ab3 (patch)
tree7502e52f50bc36c34ff83dc710c1e0904c90fdc5 /example/webpack.config.js
parentc194f84cab66fa6e18b78c32f9cdf2bddf8d1e68 (diff)
downloadpurs-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.js30
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 @@
1var path = require('path'); 1var path = require('path');
2 2
3module.exports = { 3var 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
18module.exports = config;