]>
Commit | Line | Data |
---|---|---|
9764d2a7 | 1 | 'use strict'; |
f9d1a6b3 | 2 | |
9764d2a7 | 3 | var PurescriptWebpackPlugin = require('purescript-webpack-plugin'); |
1983893b | 4 | |
9764d2a7 | 5 | var src = ['bower_components/purescript-*/src/**/*.purs', 'src/**/*.purs']; |
1983893b | 6 | |
9764d2a7 | 7 | var ffi = ['bower_components/purescript-*/src/**/*.js', 'src/**/*FFI.js']; |
1983893b | 8 | |
9 | var modulesDirectories = [ | |
10 | 'node_modules', | |
9764d2a7 | 11 | 'bower_components' |
1983893b | 12 | ]; |
13 | ||
464355c7 | 14 | var config |
15 | = { entry: './src/entry' | |
16 | , output: { path: __dirname | |
1983893b | 17 | , pathinfo: true |
464355c7 | 18 | , filename: 'bundle.js' |
19 | } | |
1983893b | 20 | , module: { loaders: [ { test: /\.purs$/ |
9764d2a7 | 21 | , loader: 'purs-loader' |
1983893b | 22 | } ] } |
9764d2a7 | 23 | , resolve: { modulesDirectories: modulesDirectories } |
24 | , plugins: [ new PurescriptWebpackPlugin({src: src, ffi: ffi}) ] | |
464355c7 | 25 | } |
26 | ; | |
27 | ||
28 | module.exports = config; |