diff options
author | eric <thul.eric@gmail.com> | 2016-05-21 22:44:27 -0400 |
---|---|---|
committer | eric <thul.eric@gmail.com> | 2016-05-21 22:44:27 -0400 |
commit | d301b47d8fb7139d11f59c5d969bdde6132a8230 (patch) | |
tree | 10a7677d88c750b360f141b2e9d5ca095e01ab4c /webpack.config.js | |
parent | 777472b3830cb3d2ff3390003ea422c6d4522715 (diff) | |
parent | 17acb575860cf1bed9e1f6d992a9b7cd66057464 (diff) | |
download | purs-loader-d301b47d8fb7139d11f59c5d969bdde6132a8230.tar.gz purs-loader-d301b47d8fb7139d11f59c5d969bdde6132a8230.tar.zst purs-loader-d301b47d8fb7139d11f59c5d969bdde6132a8230.zip |
Merge pull request #47 from alexmingoia/topic/refactor
Refactor to compile independently of purescript-webpack-plugin.
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index a39832f..0000000 --- a/webpack.config.js +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | var path = require('path'); | ||
4 | |||
5 | var webpack = require('webpack'); | ||
6 | |||
7 | var packageJson = require('./package.json'); | ||
8 | |||
9 | var noErrorsPlugin = webpack.NoErrorsPlugin; | ||
10 | |||
11 | var dedupePlugin = webpack.optimize.DedupePlugin; | ||
12 | |||
13 | var config | ||
14 | = { cache: true | ||
15 | , target: 'node' | ||
16 | , entry: { index: './entry' } | ||
17 | , externals: Object.keys(packageJson.dependencies).reduce(function(b, a){ | ||
18 | b[a] = 'commonjs ' + a; | ||
19 | return b; | ||
20 | }, {}) | ||
21 | , output: { path: __dirname | ||
22 | , filename: '[name].js' | ||
23 | , libraryTarget: 'commonjs2' | ||
24 | } | ||
25 | , plugins: [ new noErrorsPlugin() | ||
26 | , new dedupePlugin() | ||
27 | ] | ||
28 | , resolve: { modulesDirectories: [ 'build' ] } | ||
29 | } | ||
30 | ; | ||
31 | |||
32 | module.exports = config; | ||