aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/webpack.config.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-12-25 19:16:21 -0500
committereric thul <thul.eric@gmail.com>2015-12-25 19:16:21 -0500
commit9764d2a7d5e6d9cf081dcbc162dac01f95d452b3 (patch)
treebd9576aa9ab3c8f1b840fa966afc7e8a9bdd39f2 /example/webpack.config.js
parent63d6a244462d050e119bde54a7063bae8a17e987 (diff)
downloadpurs-loader-9764d2a7d5e6d9cf081dcbc162dac01f95d452b3.tar.gz
purs-loader-9764d2a7d5e6d9cf081dcbc162dac01f95d452b3.tar.zst
purs-loader-9764d2a7d5e6d9cf081dcbc162dac01f95d452b3.zip
Updating example
Diffstat (limited to 'example/webpack.config.js')
-rw-r--r--example/webpack.config.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/example/webpack.config.js b/example/webpack.config.js
index f1456d5..7f468c8 100644
--- a/example/webpack.config.js
+++ b/example/webpack.config.js
@@ -1,14 +1,14 @@
1var path = require('path'); 1'use strict';
2 2
3var srcs = ['src[]=bower_components/purescript-*/src/**/*.purs', 'src[]=src/**/*.purs']; 3var PurescriptWebpackPlugin = require('purescript-webpack-plugin');
4 4
5var ffis = ['ffi[]=bower_components/purescript-*/src/**/*.js', 'ffi[]=src/**/*FFI.js']; 5var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'];
6 6
7var output = 'output'; 7var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js'];
8 8
9var modulesDirectories = [ 9var modulesDirectories = [
10 'node_modules', 10 'node_modules',
11 'bower_components/purescript-prelude/src' 11 'bower_components'
12]; 12];
13 13
14var config 14var config
@@ -18,12 +18,10 @@ var config
18 , filename: 'bundle.js' 18 , filename: 'bundle.js'
19 } 19 }
20 , module: { loaders: [ { test: /\.purs$/ 20 , module: { loaders: [ { test: /\.purs$/
21 , loader: 'purs-loader?output=' + output + '&' + srcs.concat(ffis).join('&') 21 , loader: 'purs-loader'
22 } ] } 22 } ] }
23 , resolve: { modulesDirectories: modulesDirectories 23 , resolve: { modulesDirectories: modulesDirectories }
24 , extensions: ['', '.js'] 24 , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ]
25 }
26 , resolveLoader: { root: path.join(__dirname, 'node_modules') }
27 } 25 }
28 ; 26 ;
29 27