diff options
author | eric thul <thul.eric@gmail.com> | 2015-07-06 23:49:47 -0400 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-07-06 23:55:06 -0400 |
commit | 0e1221d7b15e578d5e9146b01e11a24007d4ba9b (patch) | |
tree | aa70df70f6c36b7a85783c28d7eb256854b4232c /webpack.config.js | |
parent | bc4de0853bd1cbf63842b3b66bb30494c9ea778a (diff) | |
download | purs-loader-0e1221d7b15e578d5e9146b01e11a24007d4ba9b.tar.gz purs-loader-0e1221d7b15e578d5e9146b01e11a24007d4ba9b.tar.zst purs-loader-0e1221d7b15e578d5e9146b01e11a24007d4ba9b.zip |
Generate .psci file
Resolves #11
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index 11b9069..a39832f 100644 --- a/webpack.config.js +++ b/webpack.config.js | |||
@@ -4,6 +4,8 @@ var path = require('path'); | |||
4 | 4 | ||
5 | var webpack = require('webpack'); | 5 | var webpack = require('webpack'); |
6 | 6 | ||
7 | var packageJson = require('./package.json'); | ||
8 | |||
7 | var noErrorsPlugin = webpack.NoErrorsPlugin; | 9 | var noErrorsPlugin = webpack.NoErrorsPlugin; |
8 | 10 | ||
9 | var dedupePlugin = webpack.optimize.DedupePlugin; | 11 | var dedupePlugin = webpack.optimize.DedupePlugin; |
@@ -12,9 +14,10 @@ var config | |||
12 | = { cache: true | 14 | = { cache: true |
13 | , target: 'node' | 15 | , target: 'node' |
14 | , entry: { index: './entry' } | 16 | , entry: { index: './entry' } |
15 | , externals: { 'glob': 'commonjs glob' | 17 | , externals: Object.keys(packageJson.dependencies).reduce(function(b, a){ |
16 | , 'loader-utils': 'commonjs loader-utils' | 18 | b[a] = 'commonjs ' + a; |
17 | } | 19 | return b; |
20 | }, {}) | ||
18 | , output: { path: __dirname | 21 | , output: { path: __dirname |
19 | , filename: '[name].js' | 22 | , filename: '[name].js' |
20 | , libraryTarget: 'commonjs2' | 23 | , libraryTarget: 'commonjs2' |