c-hive / guides

Guides for code style, way of working and other development concerns
MIT License
26 stars 5 forks source link

JS best practice: use absolute paths for imports #28

Open thisismydesign opened 4 years ago

thisismydesign commented 4 years ago

Investigate if this makes sense and add it if so. See also: https://medium.com/@sherryhsu/how-to-change-relative-paths-to-absolute-paths-for-imports-32ba6cce18a5

gomorizsolt commented 4 years ago

I have also published a similar Medium article, if it helps. :)

https://medium.com/@zsgomori/webpack-eliminating-long-imports-part-1-d9350cd16585

thisismydesign commented 4 years ago

Just looked into this and as a note: it requires ejecting or messing with CRA default config.