We have created a package of our core components and trying to reuse the package in another project. We have the package installed in node_modules but to make use of it from within project files we end up with a long path that navigates back up to the root directory and back down into node_modules. This is specifically an issue with SCSS files (partials and font file references.)
What we want is some way to shortening the paths to resources in the core package (in node_modules/package.) We have experimented with the app-module-path npm package (2.2.0) but this appears to conflict with the Aurelia configuration somewhere and reports the error “Module not found … ‘module’ …” when we try to use the addPath method, although I suspect the actual conflict is with WebPack.
Can anyone suggest an alternative approach or where I might be going wrong.