Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据材料设计文档,如果我们想创建自定义主题,我们需要做的就是.scss按照指南包含一个文件。我做了同样的事情,但是 scss 文件没有被编译。那么我们是否需要单独编译scss然后添加到主题中呢?否则编译将由 angular2 处理。
.scss
在src文件夹下包含主题文件。然后它也需要添加到angular-cli.json样式部分。
{ ... "apps": [ { ... "styles": [ "theme.scss" ], } ], ... }