diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-29 15:18:48 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-29 15:18:48 +0200 |
commit | d0e0c6baf274aab378233a7ae0d67307c03b3a7c (patch) | |
tree | ceec84efb0d396f32a16c96be1c3cf95dcd3725a /webpack.config.js | |
parent | 2e9ecf952d4028a2d55cd7be5d4afb689bac88b8 (diff) |
fix linter errors
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index 49a7b865f..d86379d57 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -33,6 +33,9 @@ module.exports = function (env) { if (env.prod) { base.plugins.push(new webpack.optimize.UglifyJsPlugin()); base.plugins.push(new webpack.LoaderOptionsPlugin({minimize: true})); + base.plugins.push(new webpack.DefinePlugin({ + "process.env.NODE_ENV": JSON.stringify("production") + })); } const configWebWorker = { entry: {"cryptoWorker": "./src/crypto/cryptoWorker.ts"}, |