We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba15c01 commit 882331fCopy full SHA for 882331f
webpack/config.cordova.js
@@ -32,6 +32,9 @@ webpackConfig.output = {
32
webpackConfig.plugins = webpackConfig.plugins.slice(0, -2).concat(
33
// ...and replace it with the new globals set here
34
new webpack.DefinePlugin({
35
+ 'process.env': {
36
+ 'NODE_ENV': JSON.stringify(env)
37
+ },
38
'__CORDOVA__': true,
39
'__PRODUCTION__': env == 'production',
40
'__DEVELOPMENT__': env != 'production',
webpack/config.development.js
@@ -15,6 +15,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
15
var IsomorphicPlugin = require('webpack-isomorphic-tools/plugin');
16
17
var plugins = (hot ? [
18
+ new webpack.optimize.OccurenceOrderPlugin(),
19
new webpack.HotModuleReplacementPlugin(),
20
new webpack.NoErrorsPlugin()
21
] : [
0 commit comments