This commit is contained in:
2026-04-11 05:34:33 +08:00
parent 2a369638b3
commit 32fd3c30f8
10 changed files with 771 additions and 382 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import path from 'path';
// https://vite.dev/config/
export default defineConfig({
server: {
hmr: true,
host: '::',
allowedHosts: [
'.mymoyu.top', // 注意是点开头,不是星号
@@ -16,7 +17,7 @@ export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'), // 实际上使用了,但可能没被检测到
'@': path.resolve(__dirname, './src'),
},
},
})