-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
34 lines (30 loc) · 1006 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
34
import react from '@vitejs/plugin-react'
import autoprefixer from 'autoprefixer'
import * as path from 'path'
import { defineConfig } from 'vite'
import { generateScopedName } from './src/utilities/build/build'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
envDir: './env',
publicDir: 'src/public',
resolve: {
alias: {
'@app': path.resolve(__dirname, 'src'),
'@styles': path.resolve(__dirname, 'src/styles'),
'@assets': path.resolve(__dirname, 'src/assets'),
'@utilities': path.resolve(__dirname, 'src/utilities'),
'@components': path.resolve(__dirname, 'src/components'),
'@containers': path.resolve(__dirname, 'src/containers'),
'@constants': path.resolve(__dirname, 'src/constants.ts'),
},
},
css: {
postcss: {
plugins: [autoprefixer()],
},
modules: {
generateScopedName,
},
},
})