Skip to content

Cheng0639/react-app-rewire-html-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}