Flexible Resource root directories setting for Angular projects to resolve html, scss imports

In Angular it's possible to shorten the path to directories, e.g. `assets/src/image.png` we can shorten with just 'assets/image.png' so no needed to type 'src', it works well to shorten everywhere but as I see it's not possible to configure Resource root the same way. 

Is there any way to say for Webstorm that if import starts with 'assets/' then resolve it in the 'assets/src/'?

0
3 comments

this is usually done by specifying path mappings/include paths. How are they defined in your project so that assets/src is mapped to assets?

0

Elena Pogorelova yes, it's mapped in angular.json, see first screenshot

0

Please sign in to leave a comment.