Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
unused-files-webpack-plugin
Advanced tools
Glob all files that are not compiled by webpack under webpack's context
Glob all files that are not compiled by webpack under webpack's context
Install with npm:
npm i --save-dev unused-files-webpack-plugin
Install with yarn:
yarn add --dev unused-files-webpack-plugin
webpack.config.babel.js
import UnusedFilesWebpackPlugin from "unused-files-webpack-plugin";
export default {
plugins: [
new UnusedFilesWebpackPlugin(options),
],
};
webpack.config.js
const { UnusedFilesWebpackPlugin } = require("unused-files-webpack-plugin");
module.exports = {
plugins: [
new UnusedFilesWebpackPlugin(options),
],
};
new UnusedFilesWebpackPlugin(options)
The (array of) pattern(s) to glob all files within the context.
["**/*.*"]
glob-all(patterns)
Emit error instead of warning in webpack compilation result.
false
true
to enable this featureThe options object pass to second parameter of glob-all
.
{ignore: "node_modules/**/*"}
glob-all(pattern, globOptions)
, which then pass to glob(…, globOptions)
Ignore pattern for glob. Can be a String or an Array of String.
"node_modules/**/*"
options.ignore
Current working directory for glob. If you don't set explicitly, it defaults to the context
specified by your webpack compiler at runtime.
webpackCompiler.context
options.cwd
context
in webpackgit checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Glob all files that are not compiled by webpack under webpack's context
The npm package unused-files-webpack-plugin receives a total of 17,999 weekly downloads. As such, unused-files-webpack-plugin popularity was classified as popular.
We found that unused-files-webpack-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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.