Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(@angular-devkit/build-angular): support specifying stylesheet language for inline component styles #20514

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 13, 2021

A new build option named inlineStyleLanguage has been introduced that will allow a project to define the stylesheet language used in an application's inline component styles. Inline component styles are styles defined via the styles property within the Angular Component decorator. Both JIT and AOT mode are supported. However, JIT mode requires that inline styles only be string literals (compile-time partial evaluation is not supported in JIT mode). Currently supported language options are: css (default), sass, scss, and less. If the option is not specified, css will be used and enables existing projects to continue to function as expected.

@clydin clydin added the target: major This PR is targeted for the next major release label Apr 13, 2021
@google-cla google-cla bot added the cla: yes label Apr 13, 2021
@clydin clydin force-pushed the inline-resources/options branch 2 times, most recently from 2092b66 to 5899376 Compare April 13, 2021 14:32
@clydin clydin requested a review from alan-agius4 April 13, 2021 14:47
…nguage for inline component styles

A new build option named `inlineStyleLanguage` has been introduced that will allow a project to define the stylesheet language used in an application's inline component styles. Inline component styles are styles defined via the `styles` property within the Angular `Component` decorator. Both JIT and AOT mode are supported. However, JIT mode requires that inline styles only be string literals (compile-time partial evaluation is not supported in JIT mode). Currently supported language options are: `CSS` (default), `Sass`, `SCSS`, and `Less`. If the option is not specified, `CSS` will be used and enables existing projects to continue to function as expected.
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Apr 14, 2021
@clydin clydin merged commit bac563e into angular:master Apr 14, 2021
@clydin clydin deleted the inline-resources/options branch April 14, 2021 11:21
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants