-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.ts
More file actions
36 lines (35 loc) · 925 Bytes
/
Copy pathvite.config.ts
File metadata and controls
36 lines (35 loc) · 925 Bytes
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
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { quasar, transformAssetUrls } from "@quasar/vite-plugin";
import { fileURLToPath } from "url";
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
plugins: [
vue({
template: { transformAssetUrls },
}),
quasar({
runMode: "web-client",
// sassVariables: "src/quasar.variables.sass",
}),
VueI18nPlugin({
// if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
// compositionOnly: false,
include: fileURLToPath(new URL("./src/locales/**", import.meta.url)),
defaultSFCLang: "json",
}),
],
server: {
fs: {
allow: [".."],
},
host: true,
port: 8080,
},
});