-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
29 lines (28 loc) · 837 Bytes
/
Copy pathvite.config.js
File metadata and controls
29 lines (28 loc) · 837 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
import { defineConfig } from 'vite';
import mkcert from 'vite-plugin-mkcert';
import react from '@vitejs/plugin-react';
export default defineConfig({
server: {
https: true, // Enables HTTPS support
// host: '0.0.0.0', // optional, allows external access if needed
// port: 3000, // optional, define port if needed
},
plugins: [
mkcert(), // For HTTPS with local certificates
react(), // React plugin support
],
css: {
preprocessorOptions: {
scss: {
api: 'modern', // SCSS preprocessor options
},
},
},
// Media file handling (like mp3, images, etc.)
assetsInclude: ['**/*.mp3', '**/*.wav', '**/*.jpg', '**/*.png', '**/*.gif'], // Handle media files
resolve: {
alias: {
'@': '/src', // If you want to use `@` as an alias for the `src` directory
},
},
});