我正在尝试使用webpack-serve支持Elm开发环境。我的问题是,我收到了大量不必要的日志记录,这些日志记录使编译器消息迅速移出屏幕-参见图片。
在我的webpack.config.js中,以下两行标记为****,旨在减少噪声,但似乎没有成功。我接下来该怎么办?
module.exports = merge(common, {
plugins: [
// Suggested for hot-loading
new webpack.NamedModulesPlugin(),
// Prevents compilation errors causing the hot loader to lose state
new webpack.NoEmitOnErrorsPlugin()
],
module: {
rules: [
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
use: [
{ loader: 'elm-hot-webpack-loader' },
{
loader: "elm-webpack-loader",
options: {
// add Elm's debug overlay to output
debug: true
}
}
]
}
]
},
serve: {
logLevel: "silent", *********
stats: "errors-only", *********
inline: true,
content: [path.join(__dirname, "src/assets")],
}
});
}