33 lines
699 B
TypeScript
33 lines
699 B
TypeScript
![]() |
import path from "node:path";
|
||
|
import vue from "@vitejs/plugin-vue";
|
||
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
||
|
import AutoImport from "unplugin-auto-import/vite";
|
||
|
import { defineConfig } from "vite";
|
||
|
|
||
|
// https://vite.dev/config/
|
||
|
export default defineConfig({
|
||
|
base: "/",
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
vueJsx(),
|
||
|
AutoImport({
|
||
|
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/],
|
||
|
imports: ["vue"],
|
||
|
dirs: ["./src"],
|
||
|
}),
|
||
|
],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
"@view": path.resolve(__dirname, "./src/view"),
|
||
|
"@": path.resolve(__dirname, "./src"),
|
||
|
},
|
||
|
},
|
||
|
css: {
|
||
|
preprocessorOptions: {
|
||
|
scss: {
|
||
|
silenceDeprecations: ["import"],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
});
|