chore: 修改 disableHostCheck 配置位置
This commit is contained in:
parent
91ed8ea7d0
commit
35da730117
|
|
@ -29,7 +29,8 @@ module.exports = {
|
|||
publicPath,
|
||||
lintOnSave: true,
|
||||
devServer: {
|
||||
publicPath // 和 publicPath 保持一致
|
||||
publicPath, // 和 publicPath 保持一致
|
||||
disableHostCheck: process.env.NODE_ENV === 'development' // 关闭 host check,方便使用 ngrok 之类的内网转发工具
|
||||
},
|
||||
css: {
|
||||
loaderOptions: {
|
||||
|
|
@ -54,12 +55,6 @@ module.exports = {
|
|||
})
|
||||
]
|
||||
}
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// 关闭 host check,方便使用 ngrok 之类的内网转发工具
|
||||
configNew.devServer = {
|
||||
disableHostCheck: true
|
||||
}
|
||||
}
|
||||
return configNew
|
||||
},
|
||||
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
|
||||
|
|
|
|||
Loading…
Reference in New Issue