aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-05-14 22:13:59 -0400
committereric thul <thul.eric@gmail.com>2015-05-14 22:13:59 -0400
commita72c8af19a72186069465c139b72df9c353fd3d1 (patch)
treeecb69055fe7b668b99d49153c12c729938ed08dc /example
parenta8b2571ee98ccd640a39873f8a9d67c707f336fe (diff)
downloadpurs-loader-a72c8af19a72186069465c139b72df9c353fd3d1.tar.gz
purs-loader-a72c8af19a72186069465c139b72df9c353fd3d1.tar.zst
purs-loader-a72c8af19a72186069465c139b72df9c353fd3d1.zip
Additional loader options
Adds the `psc-make` options `comments` and `no-prefix`. Also, an internal option `src` has been added that is used to specify the source paths of `PureScript` files that will be globbed for compilation. By default the `bower_components` path is globbed, but the loader requires that the source paths be provided for the user's code. Resolves #12
Diffstat (limited to 'example')
-rw-r--r--example/webpack.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/webpack.config.js b/example/webpack.config.js
index 19997f3..f67e83a 100644
--- a/example/webpack.config.js
+++ b/example/webpack.config.js
@@ -5,7 +5,7 @@ var config
5 , output: { path: __dirname 5 , output: { path: __dirname
6 , filename: 'bundle.js' 6 , filename: 'bundle.js'
7 } 7 }
8 , module: { loaders: [ { test: /\.purs$/, loader: 'purs-loader' } ] } 8 , module: { loaders: [ { test: /\.purs$/, loader: 'purs-loader?src[]=src' } ] }
9 , resolve: { modulesDirectories: [ 'node_modules', 9 , resolve: { modulesDirectories: [ 'node_modules',
10 'output' 10 'output'
11 ] 11 ]