-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvite.config.ts
37 lines (36 loc) · 1.25 KB
/
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
34
35
36
37
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
ssr: {
noExternal: ['react-helmet-async']
},
resolve: {
alias: {
'@assets': path.join(__dirname, './src/assets'),
'@public': path.join(__dirname, './public'),
'@core': path.join(__dirname, './src/core'),
'@screens': path.join(__dirname, './src/screens'),
'@components': path.join(__dirname, './src/components'),
'@utils': path.join(__dirname, './src/utils'),
'@hooks': path.join(__dirname, './src/hooks'),
'@lib': path.join(__dirname, './src/lib'),
'@types': path.join(__dirname, './src/types'),
'@client': path.join(__dirname, './src'),
'@server': path.join(__dirname, './server'),
'@loaders': path.join(__dirname, './src/loaders')
}
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "@assets/styles/_Global.scss" as *;
@use "@assets/styles/_mixins.scss" as *;
`
}
}
}
});