]>
git.immae.eu Git - github/fretlink/purs-loader.git/blob - example/webpack.config.js
3 var PurescriptWebpackPlugin
= require('purescript-webpack-plugin');
5 var src
= ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'];
7 var ffi
= ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js'];
9 var modulesDirectories
= [
15 = { entry: './src/entry'
16 , output: { path: __dirname
18 , filename: 'bundle.js'
20 , module: { loaders: [ { test: /\.purs$/
21 , loader: 'purs-loader'
23 , resolve: { modulesDirectories: modulesDirectories
, extensions: [ '', '.js', '.purs'] }
24 , plugins: [ new PurescriptWebpackPlugin({src: src
, ffi: ffi
}) ]
28 module
.exports
= config
;