trackr-frontend icon indicating copy to clipboard operation
trackr-frontend copied to clipboard

Replace "absolut" require paths with relative ones

Open alexgutjahr opened this issue 9 years ago • 0 comments

At the moment all require paths are absolute to the base URL '/src'. If the build system allows it they should be replaced with relative URLs to the current module which would greatly improve readability. Example:

// src/modules/reportr/reportrModule.js
define(['angular',
    'modules/reportr/revenueController',
    'modules/reportr/vacationController',
...
// can be replaced with
define(['angular',
    './revenueController',
    './vacationController',
...

alexgutjahr avatar Feb 17 '17 15:02 alexgutjahr