Skip to content

Commit d670450

Browse files
committed
fix(lib/webpackConfig): __dirname, for real this time
1 parent 1f2c455 commit d670450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function chainWebpack (api, pluginOptions, config) {
1111
((devDependencies || {}).electron || '12.0.0').replace(/^\^/, ''),
1212
'12.0.0'
1313
)
14-
? `__dirname.replace("electron.asar${path.sep}renderer", "app.asar")`
14+
? `__dirname.replace("electron.asar\\${path.sep}renderer", "app.asar")`
1515
: 'require("electron").remote.app.getAppPath()'
1616
if (process.env.IS_ELECTRON) {
1717
if (pluginOptions.nodeIntegration) {

0 commit comments

Comments
 (0)