-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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(css): support internal Sass/SCSS in HTML(#17672) #17816
base: main
Are you sure you want to change the base?
feat(css): support internal Sass/SCSS in HTML(#17672) #17816
Conversation
Run & review this pull request in StackBlitz Codeflow. |
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.
Overall the implementation looks great! I want to confirm with others if we want to support lang
as the detection attribute here first, since the attribute is originally for locales not preprocessors. I don't think it's a big problem though if we follow precedence from vue, svelte, and astro.
type: 'js' | 'css', | ||
type: | ||
| 'js' | ||
| 'css' | ||
| 'less' | ||
| 'sass' | ||
| 'scss' | ||
| 'styl' | ||
| 'stylus' | ||
| 'pcss' | ||
| 'postcss', |
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.
This can now be reverted as well
Something I just realized is that VSCode (not sure about other IDEs) don't highlight scss/stylus/etc syntax in the |
We discussed about this PR in the last team meeting. We concluded that if not many tools (e.g. IDEs, formatter) supports this it won't be useful and prefer not having it in core. If you know any tools that support this format, please let us know. |
Description
Have added support for internal css preprocessor as requested in #17672