-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
41 lines (40 loc) · 1005 Bytes
/
vite.config.js
File metadata and controls
41 lines (40 loc) · 1005 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
37
38
39
40
41
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [
vue({
template: {
transformAssetUrls
}
}),
quasar({
sassVariables: fileURLToPath(new URL('./src/quasar-variables.sass', import.meta.url))
})
],
define: {
__VUE_PROD_DEVTOOLS__: false,
__VUE_OPTIONS_API__: true,
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false
},
// Configure build to use runtime-only build (this can trigger warnings)
resolve: {
alias: {
'vue': 'vue/dist/vue.runtime.esm-bundler.js'
}
},
build: {
// Ensure we're using runtime-only build in production
rollupOptions: {
external: [],
output: {
// This can help reproduce the compiler warnings
manualChunks: {
vue: ['vue'],
quasar: ['quasar']
}
}
}
}
})