Change web base to './'
This commit is contained in:
parent
7234386150
commit
c56f61e056
2 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,6 @@
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"postbuild": "cp assets/* public",
|
|
||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"pretty": "prettier --single-quote --write 'src/**/*.{js,scss,ts,tsx,md}'"
|
"pretty": "prettier --single-quote --write 'src/**/*.{js,scss,ts,tsx,md}'"
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,6 +11,7 @@ export default defineConfig(({ mode }) => ({
|
||||||
'process.env.NODE_ENV': JSON.stringify(mode),
|
'process.env.NODE_ENV': JSON.stringify(mode),
|
||||||
'process.env.PUBLIC_URL': JSON.stringify('./'),
|
'process.env.PUBLIC_URL': JSON.stringify('./'),
|
||||||
},
|
},
|
||||||
|
base: './',
|
||||||
publicDir: 'assets',
|
publicDir: 'assets',
|
||||||
build: {
|
build: {
|
||||||
// the default value is 'dist'
|
// the default value is 'dist'
|
||||||
|
@ -25,6 +26,7 @@ export default defineConfig(({ mode }) => ({
|
||||||
outDir: 'public',
|
outDir: 'public',
|
||||||
filename: 'sw.ts',
|
filename: 'sw.ts',
|
||||||
strategies: 'injectManifest',
|
strategies: 'injectManifest',
|
||||||
|
base: './',
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Reference in a new issue