1
0
Fork 0
forked from lesion/plaid
plaid/vite.config.js
2023-09-14 00:45:19 +01:00

30 lines
570 B
JavaScript

/* eslint-env node */
import path from "path";
import vue from "@vitejs/plugin-vue";
const SRC_DIR = path.resolve(__dirname, "./src");
const PUBLIC_DIR = path.resolve(__dirname, "./public");
const BUILD_DIR = path.resolve(__dirname, "./www");
export default {
plugins: [vue()],
root: SRC_DIR,
base: "",
publicDir: PUBLIC_DIR,
build: {
outDir: BUILD_DIR,
assetsInlineLimit: 0,
emptyOutDir: true,
rollupOptions: {
treeshake: false,
},
},
resolve: {
alias: {
"@": SRC_DIR,
},
},
server: {
host: true,
},
};