Skip to content
Permalink
Browse files

fix(plugin-webpack): ensure production mode is only enabled when pack…

…aging
  • Loading branch information
MarshallOfSound committed May 15, 2018
1 parent 356827f commit dcb2b9ba9a1ee45a8e0ac880fc4d20de9775ba15
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/plugin/webpack/src/WebpackPlugin.ts
@@ -128,6 +128,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
return merge.smart({
devtool: 'source-map',
target: 'electron-main',
mode: this.isProd ? 'production' : 'development',
output: {
path: path.resolve(this.baseDir, 'main'),
filename: 'index.js',
@@ -157,6 +158,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
return merge.smart({
devtool: 'inline-source-map',
target: 'electron-renderer',
mode: this.isProd ? 'production' : 'development',
entry: prefixedEntries.concat([
entryPoint.js,
]),
@@ -185,6 +187,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
entry,
devtool: 'inline-source-map',
target: 'electron-renderer',
mode: this.isProd ? 'production' : 'development',
output: {
path: path.resolve(this.baseDir, 'renderer'),
filename: '[name]/index.js',

0 comments on commit dcb2b9b

Please sign in to comment.
You can’t perform that action at this time.