在
Codelyzer test file,我看到SCSS beeing用于样式内联模板.是否可以使用Angular CLI启用它?
我的SCSS设置在使用styleUrls时有效,但不适用于直接样式组件装饰器属性.
更新:
我正在使用Angular CLI 1.0.0和Angular 4.0.1
解决方法
不幸的是,(此刻)它是不可能的.来自Angular文档:
@H_502_27@
Style strings added to the @Component.styles array must be written in CSS because the CLI cannot apply a preprocessor to inline styles.
https://angular.io/guide/component-styles#non-css-style-files