【发布时间】:2018-02-08 11:28:55
【问题描述】:
我的 index.html 中有一些来自另一个应用程序的外部样式表。
<link href = "www.anotherapplication.com/css/anotherapp.css">
我在 angular-cli.json 中的“样式”下有应用程序特定的 css,例如
"styles": [
"../node_modules/foundation-sites/assets/foundation.scss",
"my-application.scss"
],
假设我的应用程序的基本 css 是必须包含在“my-application.scss”之前但在“foundation.scss”之后的“anotherapp.css”。
1) 在这种情况下如何订购我的 css 文件?
2) 另外,为什么 angular-cli.json 中定义的所有 css/scss 文件在 html 页面中呈现为内部样式? (- 使得在 chrome 开发者工具中查看源代码变得困难)
谢谢!
【问题讨论】:
标签: css angular angular-cli