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

filter-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filter-webpack-plugin

remove unwanted emitted assets from the output of webpack

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
1
Weekly downloads
 
Created
Source

filter-webpack-plugin

filter-webpack-plugin removes unwanted emitted assets from the output of webpack.

This is often needed when you have entry points which are not JavaScript files and processed by other plugins like extract-text-webpack-plugin.

Installation

npm i filter-webpack-plugin -D

Usage

...
    entry: {
	    css: "./src/scss/main.scss"
    }
    ...
    plugins: [
        new FilterPlugin({files:['css.js', 'css.js.map']}),
    ]
...

Check the full names and paths of the emitted files to know which files you have to filter.

FAQ

Aren't there already plugins which do the same?

Yes, but most of them are not as small as this one.

How can I use a dynamic files array?

You can use globby or any other glob solution for this.

Keywords

FAQs

Package last updated on 28 Apr 2019

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