#angular.json { ... "apps": [{ "root": "src", ... "stylePreprocessorOptions": { "includePaths": [ "./stylings" ] } }] }
// hello.component.scss @import "variables"; // 直接引入 variables, 和 ../../../stylings/ 說拜拜吧 h1 { color: $brand-color; }
Think: 同名怎麼處理?可否加入前綴做爲區分?借鑑實現Angular Material的scss導入方式@import '~@angular/material/theme.scss'?css