remove-source-webpack-plugin
v0.1.1
Published
A plugin for webpack to remove the source that are not needed
Downloads
377
Maintainers
Readme
remove-source-webpack-plugin
A plugin for webpack to remove the source that are not needed. Can be used with html-webpack-inline-source-plugin to remove inlined source.
Installation
You can install it via yarn or npm.
$ yarn add remove-source-webpack-plugin --dev
$ npm install remove-source-webpack-plugin --save-dev
Usage
Require the plugin in your webpack config:
const RemoveSourceWebpackPlugin = require('remove-source-webpack-plugin');
Add the plugin to your webpack config as follows:
plugins: [
new RemoveSourceWebpackPlugin(/runtime.*\.js$/) // array is also accepted
]
Demo
https://github.com/yangmingshan/react-demo