27 lines
543 B
JavaScript
27 lines
543 B
JavaScript
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||
|
import { defineConfig } from 'vite';
|
||
|
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
||
|
|
||
|
export default defineConfig({
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'diskConfig': 'diskConfig.cloud.js'
|
||
|
}
|
||
|
},
|
||
|
build: {
|
||
|
target: "es2022"
|
||
|
},
|
||
|
plugins: [
|
||
|
sveltekit(),
|
||
|
viteStaticCopy({
|
||
|
targets: [
|
||
|
{ src: 'tower.ico', dest: '' },
|
||
|
{ src: 'scrollbar.css', dest: '' },
|
||
|
{ src: 'network.js', dest: '' },
|
||
|
{ src: 'serviceWorker.js', dest: '' },
|
||
|
{ src: 'assets/', dest: '' }
|
||
|
]
|
||
|
})
|
||
|
]
|
||
|
});
|