diff options
author | eric <thul.eric@gmail.com> | 2015-04-12 11:35:25 -0400 |
---|---|---|
committer | eric <thul.eric@gmail.com> | 2015-04-12 11:35:25 -0400 |
commit | 7d58cf78c770ef95858f90c6e89bd18653657a82 (patch) | |
tree | ebae7549b1a1b14e11fd5e2ad4dd66d901af81c8 /webpack.config.js | |
parent | 18ced1e0f031df444a5d85d72cd6843d826fef38 (diff) | |
parent | 94a23e744896b4440794de5d6cffedff1a1a2d56 (diff) | |
download | purs-loader-7d58cf78c770ef95858f90c6e89bd18653657a82.tar.gz purs-loader-7d58cf78c770ef95858f90c6e89bd18653657a82.tar.zst purs-loader-7d58cf78c770ef95858f90c6e89bd18653657a82.zip |
Merge pull request #8 from ethul/topic/purescript-rewrite
Topic/purescript rewrite
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..11b9069 --- /dev/null +++ b/webpack.config.js | |||
@@ -0,0 +1,29 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | var path = require('path'); | ||
4 | |||
5 | var webpack = require('webpack'); | ||
6 | |||
7 | var noErrorsPlugin = webpack.NoErrorsPlugin; | ||
8 | |||
9 | var dedupePlugin = webpack.optimize.DedupePlugin; | ||
10 | |||
11 | var config | ||
12 | = { cache: true | ||
13 | , target: 'node' | ||
14 | , entry: { index: './entry' } | ||
15 | , externals: { 'glob': 'commonjs glob' | ||
16 | , 'loader-utils': 'commonjs loader-utils' | ||
17 | } | ||
18 | , output: { path: __dirname | ||
19 | , filename: '[name].js' | ||
20 | , libraryTarget: 'commonjs2' | ||
21 | } | ||
22 | , plugins: [ new noErrorsPlugin() | ||
23 | , new dedupePlugin() | ||
24 | ] | ||
25 | , resolve: { modulesDirectories: [ 'build' ] } | ||
26 | } | ||
27 | ; | ||
28 | |||
29 | module.exports = config; | ||