]> git.immae.eu Git - github/fretlink/purs-loader.git/blob - example/webpack.config.js
Updating example
[github/fretlink/purs-loader.git] / example / webpack.config.js
1 'use strict';
2
3 var PurescriptWebpackPlugin = require('purescript-webpack-plugin');
4
5 var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs'];
6
7 var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js'];
8
9 var modulesDirectories = [
10 'node_modules',
11 'bower_components'
12 ];
13
14 var config
15 = { entry: './src/entry'
16 , output: { path: __dirname
17 , pathinfo: true
18 , filename: 'bundle.js'
19 }
20 , module: { loaders: [ { test: /\.purs$/
21 , loader: 'purs-loader'
22 } ] }
23 , resolve: { modulesDirectories: modulesDirectories }
24 , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ]
25 }
26 ;
27
28 module.exports = config;