Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Now using webpack target=electron-renderer, and fixing an issue with …
Browse files Browse the repository at this point in the history
…how I was using DefinePlugin
  • Loading branch information
pbarbiero committed Mar 10, 2017
1 parent 5d92f5c commit cb08cfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion webpack.build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
],
Expand Down
4 changes: 2 additions & 2 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit cb08cfa

Please sign in to comment.