clean-output-plugin

0.6.1 • Public • Published

Install

npm install -D clean-output-plugin

Usage

const CleanOutputPlugin = require('clean-output-plugin')

config.plugins.push(
    new CleanOutputPlugin(
        hook: 'done', //default is 'emit'
        ignoreFiles: [], //the files which will not be removed
        explicitlyDelFiles: [
            'bundle.js',
            '*.js.map',
        ] // the files which will be removed, if a file path is set in the ignoreFiles at the same time, the plugin will delete this file
        // the path of ignoreFiles and explicitlyDelFiles is relative to webpack.output.path
    )
)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.6.1
    0
    • latest

Version History

Package Sidebar

Install

npm i clean-output-plugin

Weekly Downloads

0

Version

0.6.1

License

MIT

Unpacked Size

10.2 kB

Total Files

6

Last publish

Collaborators

  • jadwizard