salix-front/vite.config.js

22 lines
553 B
JavaScript

import { fileURLToPath, URL } from 'url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import ViteYaml from '@modyfi/vite-plugin-yaml';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), ViteYaml()],
resolve: {
alias: {
src: fileURLToPath(new URL('./src', import.meta.url)),
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@import 'src/css/quasar.variables.scss';`,
},
},
},
});