-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular/cli): remove postcss-custom-properties #8874
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing
@@ -67,7 +66,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) { | |||
// If deployUrl contains a scheme, ignore baseHref use deployUrl as is. | |||
return `${deployUrl.replace(/\/$/, '')}${url}`; | |||
} else if (baseHref.match(/:\/\//)) { | |||
// If baseHref contains a scheme, include it as is. | |||
// If baseHref contains a scheme, include it as is.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove random git
text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Urf durf, my bad
5c6851e
to
56d8efd
Compare
👏 |
We currently use a fallback for CSS custom properties on older browsers. This approach has a few problems: - does not work if the custom property declaration is not part of the same of the same file that uses it (multiple global stylesheets, component css). - does not work at all for component CSS in AOT. @clydin suggested a browserlist based approach for enabling this functionality, but that requires a new feature that we don't have. Since currently taking advantage of the custom property fallback is flaky even in the best case scenario, and potentially broken in prod (AOT), I think it's better to remove it altogether until we can actually do it right. Fix angular#8289
56d8efd
to
8635d00
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
We currently use a fallback for CSS custom properties on older browsers. This approach has a few problems:
@clydin suggested a browserlist based approach for enabling this functionality, but that requires a new feature that we don't have.
Since currently taking advantage of the custom property fallback is flaky even in the best case scenario, and potentially broken in prod (AOT), I think it's better to remove it altogether until we can actually do it right.
Fix #8289