generated from MerlinConnected/r3f-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
27 lines (24 loc) · 879 Bytes
/
vite.config.js
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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
const pathSrc = path.resolve(__dirname, './src').replace(/\\/g, '/');
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "${pathSrc}/styles/libs/_font-name.module.scss";\n
@import "${pathSrc}/styles/fonts/_font.scss";\n
@import "${pathSrc}/styles/libs/_variables.module.scss";\n
@import "${pathSrc}/styles/libs/_functions.module.scss";\n
@import "${pathSrc}/styles/libs/_rem.module.scss";\n
@import "${pathSrc}/styles/libs/_grid.module.scss";\n
@import "${pathSrc}/styles/libs/_mq.module.scss";\n
@import "${pathSrc}/styles/libs/_mixins.module.scss";\n
`,
},
},
},
});