viktorivarsson / react-app-rewire-idx

Add babel-plugin-idx to create-react-app via react-app-rewired

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-app-rewire-idx

Add babel-plugin-idx to a create-react-app app via react-app-rewired.

Installation

yarn add --dev react-app-rewire-idx

or

npm install --save-dev  react-app-rewire-idx

Usage

1) Using override (react-app-rewired < 1.3.4)

// config-overrides.js
const rewireIdx = require('react-app-rewire-idx');

module.exports = function override(config, env) {
  config = rewireIdx(config, env);
  // other rewires...
  return config;
}

2) Using compose

// config-overrides.js
const { compose } = require('react-app-rewired')
const rewireIdx = require('react-app-rewire-idx');

module.exports = compose(
  rewireIdx,
  // other rewires...
);

About

Add babel-plugin-idx to create-react-app via react-app-rewired

License:MIT License


Languages

Language:JavaScript 100.0%