File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ webpackConfig.output = {
32
32
webpackConfig . plugins = webpackConfig . plugins . slice ( 0 , - 2 ) . concat (
33
33
// ...and replace it with the new globals set here
34
34
new webpack . DefinePlugin ( {
35
+ 'process.env' : {
36
+ 'NODE_ENV' : JSON . stringify ( env )
37
+ } ,
35
38
'__CORDOVA__' : true ,
36
39
'__PRODUCTION__' : env == 'production' ,
37
40
'__DEVELOPMENT__' : env != 'production' ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
15
15
var IsomorphicPlugin = require ( 'webpack-isomorphic-tools/plugin' ) ;
16
16
17
17
var plugins = ( hot ? [
18
+ new webpack . optimize . OccurenceOrderPlugin ( ) ,
18
19
new webpack . HotModuleReplacementPlugin ( ) ,
19
20
new webpack . NoErrorsPlugin ( )
20
21
] : [
You can’t perform that action at this time.
0 commit comments