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 = {
3232webpackConfig . plugins = webpackConfig . plugins . slice ( 0 , - 2 ) . concat (
3333 // ...and replace it with the new globals set here
3434 new webpack . DefinePlugin ( {
35+ 'process.env' : {
36+ 'NODE_ENV' : JSON . stringify ( env )
37+ } ,
3538 '__CORDOVA__' : true ,
3639 '__PRODUCTION__' : env == 'production' ,
3740 '__DEVELOPMENT__' : env != 'production' ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
1515var IsomorphicPlugin = require ( 'webpack-isomorphic-tools/plugin' ) ;
1616
1717var plugins = ( hot ? [
18+ new webpack . optimize . OccurenceOrderPlugin ( ) ,
1819 new webpack . HotModuleReplacementPlugin ( ) ,
1920 new webpack . NoErrorsPlugin ( )
2021] : [
You can’t perform that action at this time.
0 commit comments