-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathvite.config.ts
More file actions
34 lines (33 loc) · 709 Bytes
/
vite.config.ts
File metadata and controls
34 lines (33 loc) · 709 Bytes
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-swc';
import autoprefixer from 'autoprefixer';
import * as path from 'path';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [react()],
clearScreen: false,
server: {
strictPort: true,
port: 3001,
},
resolve: {
alias: {
'@scssutils': path.resolve('./src/shared/defguard-ui/scss/helpers'),
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@scssutils" as *;\n`,
},
},
postcss: {
plugins: [autoprefixer],
},
},
envPrefix: ['VITE_', 'TAURI_'],
build: {
chunkSizeWarningLimit: 10000000,
},
});