2023-10-21 20:30:47 +01:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
2023-10-26 00:43:44 +01:00
|
|
|
import Components from "unplugin-vue-components/vite";
|
|
|
|
import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
import pluginRewriteAll from 'vite-plugin-rewrite-all';
|
|
|
|
|
2023-10-21 20:30:47 +01:00
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
vue(),
|
2023-10-26 00:43:44 +01:00
|
|
|
pluginRewriteAll(),
|
|
|
|
// Ant Design configuration
|
|
|
|
Components({
|
|
|
|
resolvers: [
|
|
|
|
AntDesignVueResolver({ importStyle:"less" })
|
|
|
|
],
|
|
|
|
}),
|
2023-10-21 20:30:47 +01:00
|
|
|
],
|
2023-10-26 00:43:44 +01:00
|
|
|
css: {
|
|
|
|
preprocessorOptions: {
|
|
|
|
less: {
|
|
|
|
modifyVars: {},
|
|
|
|
javascriptEnabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-10-21 20:30:47 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
outDir: "../cista/wwwroot",
|
|
|
|
emptyOutDir: true,
|
|
|
|
}
|
|
|
|
})
|