Skip to content

💎 webpack插件,用于删除项目下指定的文件和目录

License

Notifications You must be signed in to change notification settings

sunft1996/remove-file-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

💎 webpack插件,用于删除项目下指定的文件和目录

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published