
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.