-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Support self-closing <style> tag #5080
Comments
Yeah it probably makes sense for |
@Conduitry If it is planned to implement to implement this feature request - can I try to implement it? I've never contributed to svelte before, but I really like the project and thought that this feature wouldn't be too hard to implement? |
Sure, feel free to take a look, thank you! To get you started, the implementation would go in https://github.com/sveltejs/svelte/tree/master/src/compiler/preprocess and tests would go in https://github.com/sveltejs/svelte/tree/master/test/preprocess |
Self-closing |
I am using a preprocessor to import styles in SCSS into my Svelte components.
Some of the stylesheets have grown rather big, so eventually I started to swap them out as follows:
Out of curiosity I tried out something shorter and was surprised that it actually worked:
One minor point that still bothers me is that the compiler raises an error when I try to make the tag self-closing. The following is currently not possible:
Output from
svelte-loader
:I think it would be nice to have that supported.
The text was updated successfully, but these errors were encountered: