[6 / 2 / 3]
>require('../../../lib/Utils.js');
Because of these relative paths in require, I often need to create several version of one file just because I need to adjust the require path down one folder.
There has to be a smarter way to do this.
I have literally 5 copies of my website's navigation system depending on which subfolder is calling it.
Because of these relative paths in require, I often need to create several version of one file just because I need to adjust the require path down one folder.
There has to be a smarter way to do this.
I have literally 5 copies of my website's navigation system depending on which subfolder is calling it.