1
This commit is contained in:
+2
-1
@@ -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'),
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user