Skip to content

Commit dc88c63

Browse files
committed
ensure asset paths work correctly when loading from bundled files
1 parent b09cdfe commit dc88c63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function serveLocalesPlugin() {
5050
}
5151

5252
export default defineConfig({
53+
base: './', // Important for production APK asset paths
5354
define: {
5455
__APP_VERSION__: JSON.stringify(pkg.version),
5556
__APP_PRODUCTNAME__: JSON.stringify(pkg.productName),

0 commit comments

Comments
 (0)