{"library":"remove-source-webpack-plugin","title":"Remove Source Webpack Plugin","description":"A lightweight webpack plugin that removes specified assets from the compilation output, commonly used in conjunction with html-webpack-inline-source-plugin to eliminate inlined source files from the final bundle. The current version is 0.1.1. It accepts regex or an array of regex patterns to match assets for removal. The plugin is available as an npm package under an MIT license.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install remove-source-webpack-plugin"],"cli":null},"imports":["const RemoveSourceWebpackPlugin = require('remove-source-webpack-plugin')","const RemoveSourceWebpackPlugin = require('remove-source-webpack-plugin')","import RemoveSourceWebpackPlugin from 'remove-source-webpack-plugin'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const RemoveSourceWebpackPlugin = require('remove-source-webpack-plugin');\n\nmodule.exports = {\n  // ... other webpack config\n  plugins: [\n    new RemoveSourceWebpackPlugin(/runtime\\..*\\.js$/),\n  ],\n};","lang":"javascript","description":"Shows how to require and instantiate the plugin with a regex pattern to remove runtime chunk files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}