Skip to content

Commit 28b5be0

Browse files
committed
fix(build): use publicPath as well as baseUrl, fixes #177
1 parent f9f8b47 commit 28b5be0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ module.exports = (api, options) => {
105105
}
106106
// Set the base url so that the app protocol is used
107107
options.baseUrl = pluginOptions.noAppProtocol ? './' : 'app://./'
108+
// Set publicPath as well (replaced baseUrl since @vue/cli 3.3.0)
109+
options.publicPath = pluginOptions.noAppProtocol ? './' : 'app://./'
108110
info('Bundling render process:')
109111
// Build the render process with the custom args
110112
await api.service.run('build', vueArgs)

0 commit comments

Comments
 (0)