diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-14 09:33:19 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-14 09:33:19 -0200 |
commit | 2c9cc5ac00865e9d80bf0dc07dd8e84df0fbae5e (patch) | |
tree | 2713f48d1210d780df060920dcbe23b97833a084 /web-ui | |
parent | 6223c10a6daf0be3e9b4def16d1dbbba98e86bae (diff) |
Adds node env variable for production performance
Diffstat (limited to 'web-ui')
-rw-r--r-- | web-ui/webpack.config.js | 2 | ||||
-rw-r--r-- | web-ui/webpack.production.config.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/web-ui/webpack.config.js b/web-ui/webpack.config.js index d77650df..52188879 100644 --- a/web-ui/webpack.config.js +++ b/web-ui/webpack.config.js @@ -26,7 +26,7 @@ module.exports = { }, plugins: [copyWebpack, new webpack.DefinePlugin({ 'process.env': { - 'NODE_ENV': '"development"' + NODE_ENV: JSON.stringify('development') } })], postcss: {} diff --git a/web-ui/webpack.production.config.js b/web-ui/webpack.production.config.js index e8d3cf9d..6ee08cac 100644 --- a/web-ui/webpack.production.config.js +++ b/web-ui/webpack.production.config.js @@ -26,6 +26,11 @@ module.exports = { plugins: [ new webpack.optimize.UglifyJsPlugin(), new webpack.optimize.DedupePlugin(), + new webpack.DefinePlugin({ + 'process.env': { + NODE_ENV: JSON.stringify('production') + } + }), copyWebpack ] } |