react-app-rewire-html-webpack-plugin
v1.2.1
Published
Let you override html-webpack-plugin options in react-scripts
Downloads
2,664
Maintainers
Readme
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
}