esbuild-css-modules-plugin icon indicating copy to clipboard operation
esbuild-css-modules-plugin copied to clipboard

allowing postcss plugins

Open chrisdugne opened this issue 3 years ago • 6 comments

Hello, here are small updates I use on my project, upgrading the v1 using postcss

  • #35 added option to add any array of postcss plugins (@value for example)

chrisdugne avatar May 27 '22 17:05 chrisdugne

I think you could use a esbuild-postcss-plugin instead 🤣

indooorsman avatar May 31 '22 09:05 indooorsman

well, I understand your point, but that would also mean rewriting all what you did here, which is precisely why I use your plugin :)

chrisdugne avatar May 31 '22 15:05 chrisdugne

This would be a useful feature for me as well!

ShaunSpringer avatar Jun 17 '22 23:06 ShaunSpringer

v2.4.0 has supported custom filter

indooorsman avatar Jul 21 '22 17:07 indooorsman

The problem that I was running into that led me was trying to get CSS modules working with nesting. No combination of tweaking things would get it to work until I tried @chrisdugne's fork that allows for using postcss plugins.

mcmillion avatar Jul 26 '22 20:07 mcmillion

v2.4.0 has supported custom filter

ok, nice; I removed the filter update from this PR, And I'll test it on my side, then close #34

This PR still update v1 to allow postcss plugins though

chrisdugne avatar Aug 01 '22 15:08 chrisdugne