webvm/vite.config.js

27 lines
555 B
JavaScript
Raw Normal View History

2024-10-10 14:17:36 +00:00
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy';
export default defineConfig({
resolve: {
alias: {
'/config_terminal': 'config_public_terminal.js'
2024-10-10 14:17:36 +00:00
}
},
build: {
target: "es2022"
},
plugins: [
sveltekit(),
viteStaticCopy({
targets: [
{ src: 'tower.ico', dest: '' },
{ src: 'scrollbar.css', dest: '' },
{ src: 'serviceWorker.js', dest: '' },
{ src: 'login.html', dest: '' },
{ src: 'assets/', dest: '' }
2024-10-10 14:17:36 +00:00
]
})
]
});