Ena*_*aud 3 webpack vue.js webpack-hot-middleware nuxt.js
我正在尝试在 Nuxt 应用程序中关闭 webpack-hot-middleware 的覆盖。
我尝试编辑 nuxt.config.js 中的配置,但覆盖仍然存在。
build: {
// turn off client overlay when errors are present
hotMiddleware: {
overlay: false
},
/*
** You can extend webpack config here
*/
extend(config, ctx) {
// Run ESLint on save
if (ctx.isDev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
});
}
}
}
Run Code Online (Sandbox Code Playgroud)
如果您查看此 PR,那么您需要执行以下操作:
build: {
hotMiddleware: {
client: {
// turn off client overlay when errors are present
overlay: false
}
}
}
Run Code Online (Sandbox Code Playgroud)
它对我有用(Nuxt 2.8.1)。
归档时间: |
|
查看次数: |
2843 次 |
最近记录: |