1.1.0 • Published 2 years ago

react-app-rewire-html-webpack-plugin v1.1.0

Weekly downloads
324
License
MIT
Repository
github
Last release
2 years ago

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
}