Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 754 Bytes

File metadata and controls

24 lines (17 loc) · 754 Bytes

Rewire create-react-app to override html-webpack-plugin in your project

Let you to override html-webpack-plugin options

Install

$ yarn add react-app-rewired react-app-rewire-html-webpack-plugin -D
$ npm install react-app-rewired react-app-rewire-html-webpack-plugin --save-dev

Usage

Rewire your app than modify config-overrides.js

const rewireHtmlWebpackPlugin = require('react-app-rewire-html-webpack-plugin')

module.exports = function override(config, env) {
  const overrideConfig = {}
  config = rewireHtmlWebpackPlugin(config, env, overrideConfig)
  return config
}