Closed arggh closed 3 years ago
Maybe instead of config, the logic could work like so:
Use postcss
as preprocessor if...
this.postcss
exists...lang
attribute in the <style>
block...postcss
Closed in favour of https://github.com/zodern/melte-compiler/issues/5
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 runpostcss
plugins as preprocessors, regardless of anylang
-attributes.(I also tried to achieve autoprefixing using
juliancwirko:postcss
package, but that didn't have any effect on the Svelte components' CSS)