Skip to content

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

License

Notifications You must be signed in to change notification settings

viktorivarsson/react-app-rewire-idx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published