Skip to content

Commit 6b3b680

Browse files
authored
update basename in vite.config.json
1 parent 0d7c479 commit 6b3b680

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

vite.config.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
3-
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
3+
import path from 'path';
4+
// https://vitejs.dev/config/
45
export default defineConfig({
6+
base: '/',
57
plugins: [react()],
6-
})
8+
resolve: {
9+
alias: {
10+
'@': path.resolve(__dirname, './src'),
11+
},
12+
},
13+
});

0 commit comments

Comments
 (0)