-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
38 lines (37 loc) · 1.18 KB
/
vite.config.js
File metadata and controls
38 lines (37 loc) · 1.18 KB
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
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath } from 'url';
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@api': fileURLToPath(new URL('./src/api', import.meta.url)),
'@assets': fileURLToPath(new URL('./src/assets', import.meta.url)),
'@components': fileURLToPath(
new URL('./src/components', import.meta.url),
),
'@views': fileURLToPath(new URL('./src/views', import.meta.url)),
'@router': fileURLToPath(new URL('./src/router', import.meta.url)),
'@stores': fileURLToPath(new URL('./src/stores', import.meta.url)),
'@config': fileURLToPath(new URL('./src/config', import.meta.url)),
},
},
// SCSS 전역 사용
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "@assets/scss/color" as *;
@use "@assets/scss/font" as *;
@use "@assets/scss/mixin" as *;
@use "@assets/scss/global" as *;`,
},
},
},
server: {
host: '0.0.0.0', // 이 부분이 꼭 필요합니다
port: 5173,
},
});