mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: Remove outdated note (#46022)
Component.styles can now use SCSS or LESS preprocessors. PR Close #46022
This commit is contained in:
committed by
Alex Rickabaugh
parent
b11a939e21
commit
45ed2b7584
@@ -276,12 +276,6 @@ The CLI build process runs the pertinent CSS preprocessor.
|
||||
When generating a component file with `ng generate component`, the CLI emits an empty CSS styles file \(`.css`\) by default.
|
||||
Configure the CLI to default to your preferred CSS preprocessor as explained in the [Workspace configuration guide](guide/workspace-config#generation-schematics).
|
||||
|
||||
<div class="alert is-important">
|
||||
|
||||
Style strings added to the `@Component.styles` array *must be written in CSS* because the CLI cannot apply a preprocessor to inline styles.
|
||||
|
||||
</div>
|
||||
|
||||
<!-- links -->
|
||||
|
||||
<!-- external links -->
|
||||
|
||||
Reference in New Issue
Block a user