]>
git.immae.eu Git - github/fretlink/purs-loader.git/blob - example/webpack.config.js
1 var path
= require('path');
3 var srcs
= ['src[]=bower_components/purescript-*/src/**/*.purs', 'src[]=src/**/*.purs'];
5 var ffis
= ['ffi[]=bower_components/purescript-*/src/**/*.js'];
9 var modulesDirectories
= [
11 'bower_components/purescript-prelude/src',
16 = { entry: './src/entry'
17 , output: { path: __dirname
19 , filename: 'bundle.js'
21 , module: { loaders: [ { test: /\.purs$/
22 , loader: 'purs-loader?output=' + output
+ '&' + srcs
.concat(ffis
).join('&')
24 , resolve: { modulesDirectories: modulesDirectories
25 , extensions: ['', '.js', '.purs']
27 , resolveLoader: { root: path
.join(__dirname
, 'node_modules') }
31 module
.exports
= config
;