timarney / react-app-rewired

Override create-react-app webpack configs without ejecting
MIT License
9.77k stars 425 forks source link

slow production builds with react-app-rewired #572

Closed mx2323 closed 2 years ago

mx2323 commented 2 years ago

hey all,

ive inherited a project that uses react-app-rewired@2.1.6

we've noticed that our production builds can take upwards of 35minutes....

"build": "CI=false react-app-rewired --max-old-space-size=8192 build ",

can anyone share what tool react-app-rewired uses under the hood to compile production builds? is it webpack?

image

dawnmist commented 2 years ago

It uses create-react-app, which underneath uses webpack.

React-app-rewired is used to be able to tweak the webpack configuration for a create-react-app project, as that configuration is not normally able to be modified. You will find the actual tweaks being made inside a file or folder in the root directory of the project called config-overrides (with either a .js or .ts extension if it's a single file).

The actual version of create-react-app will be specified inside your package.json file - look for react-scripts in there as the critical version information for identifying which version of create-react-app is currently in use.

timarney commented 2 years ago

Closing --- this given it's not a bug and no activity.

karanpratapsingh commented 1 year ago

@mx2323 I'm having the same issue, did you find what was causing such slow builds?