UNPKG

react-app-rewired-preact

Version:

Tweak the create-react-app webpack config(s) without using 'eject' and without creating a fork of the react-scripts

28 lines (21 loc) 509 B
#Inferno **Install Inferno** ```bash $ npm install inferno inferno-compat --save ``` * [Rewire your app](https://github.com/timarney/react-app-rewired#how-to-rewire-your-create-react-app-project) than modify `config-overrides.js` ```javascript module.exports = function override(config, env) { config.resolve = { "alias": { 'react': 'inferno-compat', 'react-dom': 'inferno-compat', 'react-dom/server': 'inferno-compat' } } return config; } ``` ```bash $ npm start ```