angular-cli recently released angular-cli for RC1, I came across an obscure problem: the node-sass inside the sass plugin in angular-cli does not parse ~ before the package name throws the following error:
Error: File to import not found or unreadable: ~@angular2-material /core/style/theme-functions
This happens when compiling the following code:
@import " ~@angular2-material /core/style/theme-functions";
If I remove the tilde, everything will be all right. The correct behavior, or is there a way to make node-sass understandable ~ ?
PS I use WebStorm and he prefers to use ~ too. If the tilde is omitted, she complains of an inability to resolve the path. And after some search queries, I found that using code without a tilde is a legacy, and ~ should be used as best practice. It is right?
Lodin source share