]>
git.immae.eu Git - github/fretlink/purs-loader.git/blob - webpack.config.js
3 var path
= require('path');
5 var webpack
= require('webpack');
7 var packageJson
= require('./package.json');
9 var noErrorsPlugin
= webpack
.NoErrorsPlugin
;
11 var dedupePlugin
= webpack
.optimize
.DedupePlugin
;
16 , entry: { index: './entry' }
17 , externals: Object
.keys(packageJson
.dependencies
).reduce(function(b
, a
){
18 b
[a
] = 'commonjs ' + a
;
21 , output: { path: __dirname
22 , filename: '[name].js'
23 , libraryTarget: 'commonjs2'
25 , plugins: [ new noErrorsPlugin()
28 , resolve: { modulesDirectories: [ 'build' ] }
32 module
.exports
= config
;