You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't really given this much thought yet, but I ran into a situation where I would like to have autoprefixer mangle the CSS of various Svelte components in our app, some of them residing in separate packages.
Now, to achieve that, it seems I'd need to somehow add lang="postcss" attribute to all those components' <style> tags.
Would be great, if I could configure zodern:melte to always run postcss plugins as preprocessors, regardless of any lang-attributes.
Alternatively, instead of a config, the logic could work like so:
Use postcss as preprocessor if...
this.postcss exists...
...and there is no lang attribute in the <style> block...
...or, if there is, it has to be postcss
This would enable the use of PostCSS preprocessor, like Autoprefixer, without having to go through all your files setting the lang="postcss" attribute.
The text was updated successfully, but these errors were encountered:
This makes sense, and seems to be what svelte-preprocess does, though it will be a breaking change if we enable it by default.
Another option is with #2 and setting css: false, you should be able to use juliancwirko:postcss on all css, unless you want to only run it on css from svelte components.
I haven't really given this much thought yet, but I ran into a situation where I would like to have autoprefixer mangle the CSS of various Svelte components in our app, some of them residing in separate packages.
Now, to achieve that, it seems I'd need to somehow add lang="postcss" attribute to all those components' <style> tags.
Would be great, if I could configure zodern:melte to always run postcss plugins as preprocessors, regardless of any lang-attributes.
Alternatively, instead of a config, the logic could work like so:
This would enable the use of PostCSS preprocessor, like Autoprefixer, without having to go through all your files setting the
lang="postcss"
attribute.The text was updated successfully, but these errors were encountered: