remove-file-webpack-plugin

0.0.3 • Public • Published

remove-file-webpack-plugin

image image

🚀 中文文档点这里

Introduce

A plugin for webpack removes files and folders before compiler.

Getting Started

To begin, you'll need to install remove-file-webpack-plugin:

npm install --save-dev remove-file-webpack-plugin

Then add the plugin to your webpack config.

For example:

webpack.config.js

const RemoveFileWebpackPlugin = require('remove-file-webpack-plugin'); 
module.exports = {
    plugins: [
        new RemoveFileWebpackPlugin({
            dirNames:['dir_1'],
            fileNames:['file_1.js'],
        })
    ],
};

Options

Name Type Default Description
dirNames {Array} [ ] Directory name to delete
fileNames {Array} [ ] File name to delete
ignore {Array} [ ] Absolute path to directory to ignore

P.S:node_ Modules will be ignored by default and do not need to be added to ignore

Other

If you have any questions, please create an issue on GitHub.

License

MIT

/remove-file-webpack-plugin/

    Package Sidebar

    Install

    npm i remove-file-webpack-plugin

    Weekly Downloads

    0

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    7.03 kB

    Total Files

    5

    Last publish

    Collaborators

    • sunft