File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ module.exports = function configFactory(ops) {
38
38
'process.env' : {
39
39
BABEL_ENV : JSON . stringify ( 'development' ) ,
40
40
DEV_TOOLS : JSON . stringify ( true ) ,
41
+ NODE_ENV : JSON . stringify ( 'development' ) ,
41
42
} ,
42
43
} ) ,
43
44
new webpack . HotModuleReplacementPlugin ( ) ,
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module.exports = function configFactory(ops) {
36
36
new webpack . DefinePlugin ( {
37
37
'process.env' : {
38
38
BABEL_ENV : JSON . stringify ( 'production' ) ,
39
+ NODE_ENV : JSON . stringify ( 'production' ) ,
39
40
} ,
40
41
} ) ,
41
42
Original file line number Diff line number Diff line change @@ -114,9 +114,10 @@ mutation of the config object.
114
114
- [ ` webpack-hot-middleware/client?reload=true ` ] ( https://github.com/glenjamin/webpack-hot-middleware )
115
115
- Emulates the following environment variables:
116
116
- ** ` BABEL_ENV ` ** &mdash ; It is set to * development* to inform any
117
- interested code that it is running in dev mode.
117
+ interested code that it is running in dev mode;
118
118
- ** ` DEV_TOOLS ` ** &mdash ; It is set to * true* to signal the code that
119
119
Redux dev tools should be enabled;
120
+ - ** ` NODE_ENV ` ** &mdash ; It is set to * development* .
120
121
- Adds the following plugins:
121
122
- [ HotModuleReplacementPlugin] ( https://webpack.js.org/plugins/hot-module-replacement-plugin/ ) ;
122
123
- [ NoEmitOnErrorsPlugin] ( https://webpack.js.org/plugins/no-emit-on-errors-plugin/ ) ;
@@ -128,7 +129,8 @@ mutation of the config object.
128
129
it differs from that in the following:
129
130
- * production* Babel environment is enforced;
130
131
- Emulates the following environment variables:
131
- - ** ` BABEL_ENV ` ** &mdash ; It is set to * production* .
132
+ - ** ` BABEL_ENV ` ** &mdash ; It is set to * production* ;
133
+ - ** ` NODE_ENV ` ** &mdash ; It is set to * production* .
132
134
- Adds the following plugins:
133
135
- [ OptimizeCssAssetsPlugin] ( https://www.npmjs.com/package/optimize-css-assets-webpack-plugin ) ;
134
136
- [ UglifyJsPlugin] ( https://webpack.js.org/plugins/uglifyjs-webpack-plugin/ ) .
You can’t perform that action at this time.
0 commit comments