react-app-rewire-contrib icon indicating copy to clipboard operation
react-app-rewire-contrib copied to clipboard

Doesn't work

Open Maclay74 opened this issue 5 years ago • 1 comments

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.

Maclay74 avatar Aug 19 '20 11:08 Maclay74

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

osdevisnot avatar Aug 19 '20 16:08 osdevisnot