Skip to content

Commit

Permalink
fix(plugin-webpack): adjust publicPath in renderer only (#1035)
Browse files Browse the repository at this point in the history
This reverts improper PR#1021 and re-implements the changes I have in the JS (compiled) code at the right place.

Fixes #1034.
  • Loading branch information
shimaore authored and malept committed Jul 17, 2019
1 parent ca6ed54 commit 57ca285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin/webpack/src/WebpackPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Your packaged app may be larger than expected if you dont ignore everything othe
path: path.resolve(this.baseDir, 'renderer'),
filename: '[name]/index.js',
globalObject: 'self',
publicPath: '/',
...(this.isProd ? {} : { publicPath: '/' }),
},
node: {
__dirname: false,
Expand Down Expand Up @@ -425,7 +425,7 @@ Your packaged app may be larger than expected if you dont ignore everything othe
error: tab.log.bind(tab),
warn: tab.log.bind(tab),
},
...(this.isProd ? {} : { publicPath: '/' }),
publicPath: '/',
hot: true,
historyApiFallback: true,
writeToDisk: true,
Expand Down

0 comments on commit 57ca285

Please sign in to comment.