From a72c8af19a72186069465c139b72df9c353fd3d1 Mon Sep 17 00:00:00 2001 From: eric thul Date: Thu, 14 May 2015 22:13:59 -0400 Subject: 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 --- example/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') 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 , output: { path: __dirname , filename: 'bundle.js' } - , module: { loaders: [ { test: /\.purs$/, loader: 'purs-loader' } ] } + , module: { loaders: [ { test: /\.purs$/, loader: 'purs-loader?src[]=src' } ] } , resolve: { modulesDirectories: [ 'node_modules', 'output' ] -- cgit v1.2.3