自 Angular 13 起,使用波浪号 (
~
) 从 node_modules
导入 SCSS 文件
close.component.scss
:host ::ng-deep {
// Configuration
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
// Layout & components
@import "~bootstrap/scss/close";
}
运行后会出现以下警告
ng build
:
警告:'C: epos\...\src\li