Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 6506649

Browse files
committed
fix(build): load images in no server mode
set publicPath to empty string so that images load properly
1 parent 23796e5 commit 6506649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = (api, options) => {
6666
// Use custom config for webpack
6767
process.env.TAURI_BUILD = true
6868
// Set publicPath so that scripts are properly imported
69-
options.publicPath = './'
69+
options.publicPath = ''
7070

7171
if (!args.skipBundle) {
7272
try {

0 commit comments

Comments
 (0)