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
    )
)

/clean-output-plugin/

    Package Sidebar

    Install

    npm i clean-output-plugin

    Weekly Downloads

    16

    Version

    0.6.1

    License

    MIT

    Unpacked Size

    10.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • jadwizard