Need private packages and team management tools?Check out npm Teams »

remove-source-webpack-plugin

0.1.1 • Public • Published

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

License

MIT

Install

npm i remove-source-webpack-plugin

DownloadsWeekly Downloads

441

Version

0.1.1

License

MIT

Unpacked Size

4 kB

Total Files

5

Last publish

Collaborators

  • avatar