角度cli可以使用标记图标CSS吗? [英] Can angular cli use flag icon css?

查看:61
本文介绍了角度cli可以使用标记图标CSS吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Angle cli的初学者,我想知道:我可以使用此 https://github .com/lipis/flag-icon-css 在package.json中,因为当有更新时,它更容易自动更新,而我不必手动进行.标记图标是SCSS并在我的angular 2项目中使用SASS会出现问题吗?

I am beginner in angular cli and I was wondering: can I use this https://github.com/lipis/flag-icon-css in package.json because when there is an update it's more easy to update automatically and I don't have to do it manually. And is it a problem that Flag icon are SCSS and I use SASS in my angular 2 project?

推荐答案

是可以的,

使用来自node_modules的包就可以了.您只需要覆盖所有路径即可.

Using the package from node_modules works just fine. You'll just have to override all paths.

我已经在我的style.scss中找到了它.

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";

这篇关于角度cli可以使用标记图标CSS吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆