fix: ensure public files are copied to dist
This commit is contained in:
parent
90ca68e939
commit
55c2bc5e12
1 changed files with 5 additions and 13 deletions
|
|
@ -3,18 +3,10 @@ import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
|
||||||
cors: true,
|
|
||||||
headers: {
|
|
||||||
'Access-Control-Allow-Origin': '*'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
preview: {
|
|
||||||
port: 804,
|
|
||||||
host: true,
|
|
||||||
strictPort: true
|
|
||||||
},
|
|
||||||
build: {
|
build: {
|
||||||
|
outDir: 'dist',
|
||||||
|
assetsDir: 'assets',
|
||||||
copyPublicDir: true
|
copyPublicDir: true
|
||||||
}
|
},
|
||||||
|
publicDir: 'public'
|
||||||
})
|
})
|
||||||
Loading…
Add table
Reference in a new issue