chore: 更新 package.json,“scripts”添加“dev-host”项
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"dev-host": "vite dev --host 0.0.0.0",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
|
||||
|
||||
@@ -44,6 +44,7 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
server: {
|
||||
allowedHosts: true,
|
||||
port: 9000,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user