Skip to content

Commit ced7f90

Browse files
phenomenoegoist
authored andcommitted
Change publicPath for electron (#80)
1 parent 2f431e6 commit ced7f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
title: '{{name}}',
77
// when you use electron please set to relative path like ./
88
// otherwise only set to absolute path when you're using history mode
9-
publicPath: './',
9+
publicPath: '{{#if electron}}.{{/if}}/',
1010
// add these dependencies to a standalone vendor bundle
1111
vendor: Object.keys(pkg.dependencies),
1212
// disable babelrc by default

0 commit comments

Comments
 (0)