You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
788 B
29 lines
788 B
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import devtoolsJson from 'vite-plugin-devtools-json';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
emptyOutDir: true
|
|
},
|
|
plugins: [
|
|
devtoolsJson(),
|
|
vue(),
|
|
Components({
|
|
dts: true,
|
|
dirs: ['src/components', '../../internal/x/components'],
|
|
globsExclude: ["**/_*/**/*"]
|
|
}),
|
|
AutoImport({
|
|
dts: true,
|
|
dtsMode: "overwrite",
|
|
ignore: ["**/_*/**/*"],
|
|
imports: ['vue', 'vue-router', 'pinia'],
|
|
dirs: ['./src/composables/**/*', '../../internal/x/composables/**', "./src/store/**/*"],
|
|
vueTemplate: true,
|
|
}),
|
|
],
|
|
})
|
|
|