
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
webpack-filter-warnings-plugin
Advanced tools
Allows you to hide certain warnings from webpack compilations
The webpack-filter-warnings-plugin is an npm package designed to help developers filter out unwanted warnings from the webpack compilation process. This can be particularly useful in large projects where certain warnings are known and benign, allowing developers to focus on more significant issues.
Filter specific warnings
This feature allows developers to exclude specific warnings from the webpack output by using regular expressions. In the provided code sample, the plugin is configured to exclude warnings that match the regular expression related to critical dependency warnings.
const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
module.exports = {
plugins: [
new FilterWarningsPlugin({
exclude: /Critical dependency: the request of a dependency is an expression/
})
]
};
Similar to webpack-filter-warnings-plugin, ignore-emit-webpack-plugin allows developers to ignore specific files or warnings during the webpack emit phase. It differs in that it focuses on the output files rather than the warnings themselves, providing a more targeted approach for controlling the output.
Allows you to hide certain warnings from webpack compilations
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/
})
]
}
Currently karma-webpack does not respect the stats.warningsFilter option. Also when excluding all warnings, webpack still says Compiled with warnings.
when all warnings are filtere. Hopefully this plugin will no longer need to exist one day.
MIT
FAQs
Allows you to hide certain warnings from webpack compilations
The npm package webpack-filter-warnings-plugin receives a total of 583,782 weekly downloads. As such, webpack-filter-warnings-plugin popularity was classified as popular.
We found that webpack-filter-warnings-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.