回路図 (ng new --collection=@foo/schematics myproject) を使用してサイトを構築すると、次の 1 つを除いてすべて正常に動作します。
結果の angular.json ファイルには、styles 配列に 1 つのスタイル ファイルのみが含まれています。複数のカスタム スタイル ファイルを含める必要があります。
新しい回路図をビルドした後の現在の angular.json:
"build": {
"options": {
"styles: [
"src/styles.scss"
]
}
}
希望:
"build": {
"options": {
"styles: [
"src/styles.scss",
"src/custom1.scss",
"src/custom2.scss"
]
}
}
これらの追加のスタイルシートを含めたいことを angular Schematics ルーチンにどのように伝えることができますか?