-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
33 lines (31 loc) · 1012 Bytes
/
vite.config.ts
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
/* eslint-disable import/no-default-export */
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
// https://vitejs.dev/config/
export default defineConfig(() => {
return {
plugins: [react()],
resolve: {
alias: {
"@scss": path.resolve("src/shared/scss"),
"@app": path.resolve("src/app"),
"@pages": path.resolve("src/pages"),
"@widgets": path.resolve("src/widgets"),
"@entities": path.resolve("src/entities"),
"@features": path.resolve("src/features"),
"@shared": path.resolve("src/shared"),
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "@scss/_mixins.scss" as *;
@use "@scss/_media.scss" as *;
`,
},
},
},
}
})