]>
Commit | Line | Data |
---|---|---|
f9d1a6b3 | 1 | var path = require('path'); |
2 | ||
1983893b | 3 | var srcs = ['src[]=bower_components/purescript-*/src/**/*.purs', 'src[]=src/**/*.purs']; |
4 | ||
3610dff1 | 5 | var ffis = ['ffi[]=bower_components/purescript-*/src/**/*.js', 'ffi[]=src/**/*FFI.js']; |
1983893b | 6 | |
7 | var output = 'output'; | |
8 | ||
9 | var modulesDirectories = [ | |
10 | 'node_modules', | |
04eb392f | 11 | 'bower_components/purescript-prelude/src' |
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$/ |
21 | , loader: 'purs-loader?output=' + output + '&' + srcs.concat(ffis).join('&') | |
22 | } ] } | |
23 | , resolve: { modulesDirectories: modulesDirectories | |
3610dff1 | 24 | , extensions: ['', '.js'] |
464355c7 | 25 | } |
26 | , resolveLoader: { root: path.join(__dirname, 'node_modules') } | |
27 | } | |
28 | ; | |
29 | ||
30 | module.exports = config; |