refactor: Adjust project structure

This commit is contained in:
hayden
2024-09-20 11:17:59 +08:00
parent 6f61688bd8
commit d96aff80c2
19 changed files with 3147 additions and 9017 deletions

25
vite.config.ts Normal file
View File

@@ -0,0 +1,25 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
build: {
outDir: 'web',
minify: 'esbuild',
target: 'es2022',
sourcemap: true,
rollupOptions: {
// Disabling tree-shaking
// Prevent vite remove unused exports
treeshake: true,
},
},
esbuild: {
minifyIdentifiers: false,
keepNames: true,
minifySyntax: true,
minifyWhitespace: true,
},
})