When using a tilde (~
) in scss import paths, it expands to node_modules/
in Angular. Is there any piece of official documentation that says that this is a feature of either Angular or webpack?
All I have found on the matter so far is a few bug reports for previous angular versions saying it's broken, and a comment saying it's an implementation detail that shouldn't be relied upon.
I was hoping to do an ng eject
and check the configs, but that command is no longer available.
I'd appreciate if someone could point me to either some official piece of documentation stating that ~
is shorthand for the path to node_modules/
, or a piece of source code (e.g. a config file) that specifies that replacement. :)
Basically, I want to figure out why this works, and how.