-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
32 lines (31 loc) · 989 Bytes
/
vite.config.js
File metadata and controls
32 lines (31 loc) · 989 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
import { defineConfig } from 'vite';
import path from 'path';
import vue from '@vitejs/plugin-vue';
import svgLoader from 'vite-svg-loader';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), svgLoader()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@icons': path.resolve(__dirname, 'src/assets/icons'),
'@api': path.resolve(__dirname, 'src/api/'),
'@store': path.resolve(__dirname, 'src/store'),
'@helpers': path.resolve(__dirname, 'src/helpers'),
'@router': path.resolve(__dirname, 'src/router'),
'@components': path.resolve(__dirname, 'src/components'),
'@ui': path.resolve(__dirname, 'src/components/ui'),
'@views': path.resolve(__dirname, 'src/views'),
'@layouts': path.resolve(__dirname, 'src/layouts'),
}
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "@/assets/styles/_variables.scss";
`
}
}
}
});