css - Angular Material Theme import in Angular 2 not working in Webstorm -
i trying import built in themes of angular material 2 web-storm unable resolve file path , find directory although theme file residing in exact directory. have tried different methods import resulted in same issue. here how importing in styles.scss file
@import '~@angular/material/prebuilt-themes/indigo-pink.css';
the ide starts highlighting path material stating problem.
this whole path of theme file.
/media/rehan/new volume/tic-tac-toe/node_modules/@angular/material/prebuilt-themes/indigo-pink.css
as working angular cli based project in angular 2 added theme file .angular-cli.json file under styles object using following path may vary depending on angular material has been installed:
"styles": [ "../node_modules/@angular/material/prebuilt-themes/indigo-pink.css"]
Comments
Post a Comment