Socket
Socket
Sign inDemoInstall

filter-webpack-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    filter-webpack-plugin

remove unwanted emitted assets from the output of webpack


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
2.14 kB
Created
Weekly downloads
 

Readme

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

Last updated on 28 Apr 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc