Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unused-files-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unused-files-webpack-plugin

Glob all files that are not compiled by webpack under webpack's context

  • 3.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26K
increased by16.32%
Maintainers
1
Weekly downloads
 
Created
Source

unused-files-webpack-plugin

Glob all files that are not compiled by webpack under webpack's context

Version Travis CI Quality Coverage Dependencies Gitter

Installation

npm i --save unused-files-webpack-plugin

Usage

// webpack.config.babel.js
import UnusedFilesWebpackPlugin from "unused-files-webpack-plugin";
// webpack.config.js
var UnusedFilesWebpackPlugin = require("unused-files-webpack-plugin")["default"];
// or
var UnusedFilesWebpackPlugin = require("unused-files-webpack-plugin").UnusedFilesWebpackPlugin;

module.exports = {
  plugins: [
    new UnusedFilesWebpackPlugin(),
  ],
};

Options

new UnusedFilesWebpackPlugin(options)

options.pattern

The pattern to glob all files within the context.

  • Default: **/*.*
  • Directly pass to glob(pattern)

options.failOnUnused

Emit error instead of warning in webpack compilation result.

  • Default: false
  • Explicitly set it to true to enable this feature

options.globOptions

The options object pass to second parameter of glob.

globOptions.ignore

Ignore pattern for glob. Can be a String or an Array of String.

globOptions.cwd

Current working directory for glob. If you don't set explicitly, it defaults to the context specified by your webpack compiler at runtime.

Contributing

devDependency Status

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Keywords

FAQs

Package last updated on 13 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc