suppress-files-webpack-plugin

    1.0.0 • Public • Published

    suppress-files-webpack-plugin

    Webpack plugin for removing files with names that match a regex from the build output.

    Suppress Files Webpack Plugin

    Removes files from build output by regex match on file names.

    When working with complex Webpack builds and async loaded chunks, sometimes you need to exclude or suppress certain files from being outputted.

    Install

    $ npm install --save-dev suppress-files-webpack-plugin

    Usage

    In your webpack.config.js:

    plugins: [
      new SuppressFilesPlugin({
        match: /\.js$/
      })
    ],

    You can provide a RegExp to the match parameter which is compared against the file name of the chunk. Anything that matches will be deleted from the outputted build.

    Maintainers

    David Jackson

    Install

    npm i suppress-files-webpack-plugin

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • iamdavidjackson