diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-17 07:52:11 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-17 07:52:11 +0200 |
commit | 9be9f85665b60bdcddddbf98d4439d53131f50fd (patch) | |
tree | 355bc28262a7c7eb54542334b739317328b3a684 /webpack.config.js | |
parent | 238106fbfba60a23800c1038ec7b1a04e0682119 (diff) | |
parent | dee3ae88feee44f07481d97d1acc6cd7607668b7 (diff) | |
download | fengari-9be9f85665b60bdcddddbf98d4439d53131f50fd.tar.gz fengari-9be9f85665b60bdcddddbf98d4439d53131f50fd.tar.bz2 fengari-9be9f85665b60bdcddddbf98d4439d53131f50fd.zip |
Merge remote-tracking branch 'daurnimator/webpack-improvements'
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 21bc8c4..7fbcf86 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,11 +5,15 @@ const BabiliPlugin = require("babili-webpack-plugin"); module.exports = [ { entry: './src/fengari.js', + target: 'web', output: { path: path.resolve(__dirname, 'dist'), filename: 'fengari.js', library: 'fengari' }, + externals: { + "crypto": "crypto" + }, plugins: [ new webpack.DefinePlugin({ WEB: JSON.stringify(true), @@ -18,16 +22,20 @@ module.exports = [ }, { entry: './src/fengari.js', + target: 'web', output: { path: path.resolve(__dirname, 'dist'), filename: 'fengari.min.js', library: 'fengari' }, + externals: { + "crypto": "crypto" + }, plugins: [ - new BabiliPlugin(), new webpack.DefinePlugin({ WEB: JSON.stringify(true), - }) + }), + new BabiliPlugin() ] } ]; |