Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin-webpack): properly reference
index.js
in production (#1021)
* webpack plugin: properly references `index.js` When building an executable using `electron-force make`, setting `publicPath` as `/` leads (for example) to `index.js` being referenced as `file:///main_window/index.js`, which cannot be found. (The URL points to `/main_window/index.js`, which is incorect. It should be `../main_window/index.js`.) When it is unset, the build runs properly and provides the correct URL. (This still works with `electron-forge start` as well.) * publicPath is needed for hot module reloading As noted in #713 * correct syntax
- Loading branch information