init
This commit is contained in:
commit
98131c3b78
29 changed files with 2003 additions and 0 deletions
40
vite.config.mts
Normal file
40
vite.config.mts
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import vue from "@vitejs/plugin-vue";
|
||||
import { defineConfig } from "vite";
|
||||
import vueDevTools from "vite-plugin-vue-devtools";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
cssMinify: "lightningcss",
|
||||
emptyOutDir: true,
|
||||
outDir: "dist",
|
||||
reportCompressedSize: true,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
compact: true,
|
||||
format: "esm",
|
||||
validate: true,
|
||||
},
|
||||
},
|
||||
sourcemap: false,
|
||||
},
|
||||
cacheDir: ".cache/vite",
|
||||
clearScreen: false,
|
||||
css: {
|
||||
transformer: "lightningcss",
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ["sqlocal"],
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
vueDevTools(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": Bun.fileURLToPath(new URL("./src", import.meta.url)),
|
||||
},
|
||||
},
|
||||
worker: {
|
||||
format: "es",
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue