DEV Community

Discussion on: [Updated] Simplify the require/import paths in your project and avoid ../../../ circles of hell

Collapse
 
lokhmakov profile image
Pavel Lokhmakov • Edited
  1. For CRA enough to create in root .env with NODE_PATH=src and all directories inside ./src will be available by absolute path.

  2. Do not use eject, we have alternatives to modify most of internal configs. U can choose:

  • customize-cra
  • react-app-rewired
Collapse
 
mjraadi profile image
Mohammadjavad Raadi

Thanks Pavel, I'll have a look at them.

Collapse
 
mjraadi profile image
Mohammadjavad Raadi

I've updated the post to reflect your suggestion. Thanks