1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

enable prod mode on production env

This commit is contained in:
Kyle Spearrin
2018-06-05 00:31:06 -04:00
parent 22c1b0627e
commit 9cafb76781
3 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;
if (process.env.NODE_ENV == null || process.env.WEBPACK_SERVE) {
if (process.env.NODE_ENV == null) {
process.env.NODE_ENV = 'development';
}
const ENV = process.env.ENV = process.env.NODE_ENV;