Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Add the babel-plugin-react-intl to your create-react-app app via react-app-rewired.

License

clemencov/react-app-rewire-react-intl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

react-app-rewire-react-intl

Add the babel-plugin-react-intl to your create-react-app app via react-app-rewired.

Installation

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

Usage

In the config-overrides.js you created for react-app-rewired add this code:

const rewireReactIntl = require('react-app-rewire-react-intl');
/* config-overrides.js */
module.exports = function override(config, env) {
 config = rewireReactIntl(config, env);
 return config;
}

To pass options to the Babel plugin use the third argument, it passes straight through to the plugin:

config = rewireReactIntl(config, env, {
 messagesDir: './build/messages/',
})

See the available options in the babel-plugin-react-intl documentation.

About

Add the babel-plugin-react-intl to your create-react-app app via react-app-rewired.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /