-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Add project source dir as a module #1465
Copy link
Copy link
Closed
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussionfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Metadata
Metadata
Assignees
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussionfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
It would be very useful to be able to address components via a relative path starting at the project root. A way to do this is to consider the project root as a special project, as if it was inside of
node_modulesas far as resolution is concerned.Such a design greatly reinforces the 'app as a library' idea, and plays nice with most module loading scheme.
A proposed name is
@appbut configurable viaangular-cli.json, whereappis the project prefix specified inng new --prefix app(this exists already and defaults toapp).Example:
This would also work for CSS preprocessors.
Such implementation would address #865 and also greatly reduce the need for #900.