32 lines
927 B
TypeScript
32 lines
927 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue({
|
|
template: { transformAssetUrls }
|
|
}),
|
|
quasar({
|
|
sassVariables: 'src/css/quasar-variables.scss'
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
src: fileURLToPath(new URL('./src', import.meta.url)),
|
|
components: fileURLToPath(new URL('./src/components', import.meta.url)),
|
|
layouts: fileURLToPath(new URL('./src/layouts', import.meta.url)),
|
|
pages: fileURLToPath(new URL('./src/pages', import.meta.url)),
|
|
stores: fileURLToPath(new URL('./src/stores', import.meta.url)),
|
|
boot: fileURLToPath(new URL('./src/boot', import.meta.url))
|
|
}
|
|
},
|
|
server: {
|
|
port: 9000,
|
|
strictPort: false
|
|
},
|
|
clearScreen: false,
|
|
envPrefix: ['VITE_', 'TAURI_']
|
|
})
|