Skip to content

Commit

Permalink
Applying a workaround using
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharchitti committed Jun 30, 2019
1 parent 1869c2c commit 775e2a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const APP_DIR = path.resolve(__dirname, 'app');
const RESOURCES_DIR = path.resolve(__dirname, 'resources');

const config = {

entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:8080',
Expand All @@ -25,7 +26,7 @@ const config = {
publicPath: '/'
},
mode: 'development',
devtool: 'source-map',
devtool: process.env.NODE_ENV === "development" ? "source-map" : "none",
optimization: {
namedModules: true
},
Expand Down Expand Up @@ -82,6 +83,7 @@ const config = {
})
],
target: 'electron-renderer'

};

module.exports = config;
2 changes: 1 addition & 1 deletion webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = {
fs: "empty"
},
mode: 'production',
devtool: 'source-map',
devtool: process.env.NODE_ENV === "development" ? "source-map" : "none",
optimization: {
namedModules: true,
splitChunks: {
Expand Down

0 comments on commit 775e2a8

Please sign in to comment.