Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@mokahr/unused-webpack-plugin
Advanced tools
A Webpack plugin used to find unused source files
npm install --save-dev @mokahr/unused-webpack-plugin
const UnusedWebpackPlugin = require('@mokahr/unused-webpack-plugin');
// your webpack config
module.exports = {
...
plugins: [
...
new UnusedWebpackPlugin(), // use the 'unused' plugin ;-)
]
}
unused-files
will be created under the project working directory.new UnusedWebpackPlugin(options)
Current working directory, default value is ./
Included glob pattern list, default value is ['**/*.js', '**/*.styl']
, which means only .js or .styl files will be checked.
Note: Usually not all the static assets are referenced in js files directly, such as some images or font files, therefore we do not recommend to use the pattern *
directly, otherwise you may got some misleading results.
Excluded glob pattern list, default value is ['node_modules/**']
The result file path, default value is ./unused-files
cat unused-files | while read LINE; do rm $LINE; done
.1.0.7
FAQs
A webpack plugin used to find unused source files
The npm package @mokahr/unused-webpack-plugin receives a total of 9 weekly downloads. As such, @mokahr/unused-webpack-plugin popularity was classified as not popular.
We found that @mokahr/unused-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.