react-app-rewire-contrib
react-app-rewire-contrib copied to clipboard
Doesn't work
Nothing changes when I use this solution, I still get regular app without bundle.
I use config-overrides.js with next content:
const rewireReactLibrary = require('react-app-rewire-react-library');
const pkg = require('./package.json');
module.exports = function(config, env) {
return rewireReactLibrary(config, env, pkg, process.env.ENCW_BUILD_LIB);
};
So my package.json file is correct as well, but still it builds just like regular app.
Hi @Mikecoon, this repository mostly supports CRA 1.x applications. I have it around for some of my legacy applications.
If you are using CRA 2.x, this plugin won't work. I would recommend using https://github.com/arackaf/customize-cra for CRA 2.x