Can angular cli use flag icon css?
Installation:
npm install flag-icon-css --save
Updating the styles section in the angular.json file (if you use Angular < 6.0.0 - then angular-cli.json):
"styles": [
"node_modules/flag-icon-css/css/flag-icon.min.css",
.....
],
Use in templates:
<span class="flag-icon flag-icon-ru"></span>
Yes it can do,
Using the package from node_modules works just fine. You'll just have to override all paths.
I've got this in my style.scss.
$flag-icon-css-path: '~flag-icon-css/flags' !default;
@import "~flag-icon-css/sass/flag-icon";
$image_path: '~material-design-lite/src/images' !default;
@import "~material-design-lite/src/material-design-lite";