farm icon indicating copy to clipboard operation
farm copied to clipboard

[Feature Request]: custom CSS transformer support

Open ThatOneCalculator opened this issue 9 months ago • 3 comments

What problem does this feature solve?

Vite allows the use of a custom CSS transformer (only lightningcss as of right now), and having that functionality in Farm would be great.

What does the proposed API look like?

In farm.config.ts:

	css: {
		transformer: "lightningcss",
	},

ThatOneCalculator avatar May 09 '24 04:05 ThatOneCalculator

Farm is based on plugins, so all transformers should be implemented as a plugin, we won't support css.transformer, instead, we'll provide a plugin-lightningcss later

wre232114 avatar May 09 '24 09:05 wre232114

Could https://github.com/lawrencecchen/vite-plugin-lightningcss be used as a base?

ThatOneCalculator avatar Jun 16 '24 21:06 ThatOneCalculator

Yes, we'll provide a pure rust lightningcss plugin later(maybe this month, and PR welcome)

wre232114 avatar Jun 17 '24 11:06 wre232114