diff --git a/package.json b/package.json index 9f617114..310e3ba8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "basic-electron-react-boilerplate", - "version": "0.3.0", + "version": "0.4.0", "description": "Minimal and modern react+electron+webpack boilerplate", "author": "Phillip Barbiero", "homepage": "https://github.com/PhillMcKraken/basic-electron-react-boilerplate", @@ -22,7 +22,7 @@ "babel-core": "^6.23.1", "babel-loader": "^6.4.0", "babel-preset-react": "^6.23.0", - "babili-webpack-plugin": "0.0.11", + "babili-webpack-plugin": "^0.0.11", "css-loader": "^0.26.2", "electron": "^1.6.1", "electron-packager": "^8.5.2", diff --git a/webpack.build.config.js b/webpack.build.config.js index c85d45b1..ad49462c 100644 --- a/webpack.build.config.js +++ b/webpack.build.config.js @@ -37,7 +37,7 @@ module.exports = { plugins: [ new ExtractTextPlugin("bundle.css"), new webpack.DefinePlugin({ - process: { env: { NODE_ENV: JSON.stringify('production') } } + 'process.env.NODE_ENV': JSON.stringify('production') }), new BabiliPlugin() ], diff --git a/webpack.dev.config.js b/webpack.dev.config.js index 62ae19db..a1c6e7ae 100644 --- a/webpack.dev.config.js +++ b/webpack.dev.config.js @@ -36,8 +36,8 @@ module.exports = { plugins: [ new HtmlWebpackPlugin(), new webpack.DefinePlugin({ - process: { env: { NODE_ENV: JSON.stringify('development') } } - }) + 'process.env.NODE_ENV': JSON.stringify('development') + }), ], devtool: "cheap-source-map", devServer: {