Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 25,333 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.