The problem of using sass in ng-cli

background: the recent project requires the use of ng6 for development, in crazy learning;
question: using scss, in ng hopes to have a common.scss to hold some common variables, functions, etc., and then can be used normally in various subcomponents, um, like vue-cli (I have been using vue); before
Note: it has been implemented. Define variables in the app.component.scss file, and then use variables in the subcomponents @ import , but this writing still feels awkward.
ps: has searched the Internet for a long time but can not find any clear information, asking all kinds of gods to answer questions

Sep.24,2021

ask a great god to help answer.

Menu