{"library":"remove-webpack-plugin","title":"RemoveWebpackPlugin","description":"Plugin for webpack to remove directories or files during the build process, similar to rm -r. Current stable version is 1.2.2. The plugin has low release cadence. It is straightforward but offers minimal features compared to alternatives like CleanWebpackPlugin. It supports removing single or multiple paths and configuring error handling (show, hide, fatal). Only works with webpack plugins API.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install remove-webpack-plugin"],"cli":null},"imports":["const RemoveWebpackPlugin = require('remove-webpack-plugin');","const RemoveWebpackPlugin = require('remove-webpack-plugin');","const RemoveWebpackPlugin = require('remove-webpack-plugin');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const RemoveWebpackPlugin = require('remove-webpack-plugin');\n\nmodule.exports = {\n  plugins: [\n    new RemoveWebpackPlugin(['./public/', './build/'], { errors: 'hide' })\n  ]\n}","lang":"javascript","description":"Shows how to configure RemoveWebpackPlugin to remove multiple directories and suppress warnings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}