我正在尝试在 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)