/
vite.config.ts
56 lines (54 loc) · 1.44 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { defineConfig } from "vite";
import { resolve } from "path";
import vue from "@vitejs/plugin-vue";
// import vueI18n from "@intlify/unplugin-vue-i18n";
// import {createVuePlugin as vue} from "vite-plugin-vue2"
// import { VuetifyResolver } from "unplugin-vue-components/resolvers"
// import Components from "unplugin-vue-components/vite"
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
export default defineConfig({
// define: {
// 'process.env': process.env
// },
resolve: {
alias: {
"@": resolve(__dirname, "./src")
// vue: "@vue/compat"
},
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
},
optimizeDeps: {
exclude: ['fsevents']
},
plugins: [
vue({
template: {
transformAssetUrls,
compilerOptions: {
isCustomElement: (tag) => {
return tag.startsWith('V')
},
compatConfig: {
MODE: 3
},
}
}
}),
vuetify({
autoImport: true,
styles: {
configFile: "src/scss/app.scss"
}
}),
VueI18nPlugin({
include: [resolve(__dirname, "./src/assets/languages/**")],
strictMessage: true /* messages should not contain HTML tags */,
allowDynamic: true,
bridge: false /* specify custom blocks to work under both v8 and v9 */
})
],
server: {
port: 8080
}
});