re: [Updated] Simplify the require/import paths in your project and avoid ../../../ circles of hell VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

If you're using the Vue webpack config, such as with SFC, it provides an alias you can use to reference files by absolute path (e.g. from '@/components/Button'). I've carried this convention into my React projects as it's really easy to setup without adding another dependency. Only downside is that it only works for webpacked files.

 
code of conduct - report abuse