Home

Awesome

react-app-rewire-unplug

A plugin for react-app-rewired. It removes unwanted webpack plugins from the default react-create-app configuration.

Installation

$ npm install react-app-rewire-unplug --only=dev

Usage

Add the following to your config-overrides.js file. See react-app-rewired for more information regarding this file.

const removeWebpackPlugins = require ('react-app-rewire-unplug');

The following code removes two webpack plugins from the config. You would put this in the config's override function.


config = removeWebpackPlugins(config, env, {
    pluginNames: ['SWPrecacheWebpackPlugin', 'NonExistentPlugin'],
    verbose: true
});

What happens here:

Options

Configure the third parameter of removeWebpackPlugins as an object with the following optional properties: