react-app-rewired icon indicating copy to clipboard operation
react-app-rewired copied to clipboard

Combining react-app-rewire-hot-loader and customize-cra

Open ghost opened this issue 7 years ago • 3 comments

Hi, recently just switched over to v2.0.1 in order to resolve some issues I was encountering with "react-app-rewired build" and the webpack.config.js file. However, I realized this was now causing some issues with the "injectBabelPlugin" helper.

Is there a way on combining 'customize-cra' and 'react-app-rewire-hot-loader' in the config-overrrides.js?

Here is the code for react-app-rewire-hot-loader:

module.exports = function override(config, env) { config = rewireReactHotLoader(config, env); return config; }

and here is what I have for customize-cra:

module.exports = override( fixBabelImports("import", { libraryName: "antd", libraryDirectory: "es", style: true // change importing css to less }), addLessLoader({ javascriptEnabled: true, modifyVars: { "@primary-color": "#1DA57A" } }) );

I am having some trouble combining the two to work together.

ghost avatar Feb 19 '19 21:02 ghost

I have the same issue. Any solutions?

steenole avatar Mar 14 '19 08:03 steenole

Closing this - as it doesn't sound like a code bug with this repo.

timarney avatar Mar 22 '19 16:03 timarney

If anyone lands here, and needs a solution.. https://github.com/arackaf/customize-cra/issues/54

esc-rtn avatar Oct 23 '19 19:10 esc-rtn