-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
31 lines (29 loc) · 863 Bytes
/
vite.config.js
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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 9090,
},
resolve: {
alias: [
{ find: 'src', replacement: 'src' },
{ find: 'app', replacement: '*' },
{ find: 'components', replacement: 'src/components' },
{ find: 'layouts', replacement: 'src/layouts' },
{ find: 'pages', replacement: 'src/pages' },
{ find: 'assets', replacement: 'src/assets' },
{ find: 'boot', replacement: 'src/boot' },
{ find: 'vue$', replacement: 'node_modules/vue/dist/vue.runtime.esm-bundler.js' },
],
},
plugins: [
vue({
template: { transformAssetUrls },
}),
quasar({
sassVariables: 'src/quasar-variables.sass',
}),
],
})