-
Webpack-filter-warnings-plugin插件可让您在Webpack编译时忽略特定警告
资源介绍
webpack-filter-warnings-plugin
允许您从Webpack编译中隐藏某些警告
安装
npm i -D webpack-filter-warnings-plugin
用法
// webpack.config.js
const { FilterWarningsPlugin } = require ( 'webpack-filter-warnings-plugin' ) ;
module . exports = {
// ... rest of webpack config
plugins : [
new FilterWarningsPlugin ( {
exclude : / any-warnings-matching-this-will-be-hidden /
} )
]
}
与打字稿一起使用
Webpack筛选器警告插