Skip to content
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

[Feature Request]: custom CSS transformer support #1294

Open
ThatOneCalculator opened this issue May 9, 2024 · 3 comments
Open

[Feature Request]: custom CSS transformer support #1294

ThatOneCalculator opened this issue May 9, 2024 · 3 comments

Comments

@ThatOneCalculator
Copy link

ThatOneCalculator commented May 9, 2024

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",
	},
@wre232114
Copy link
Member

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

@ThatOneCalculator
Copy link
Author

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

@wre232114
Copy link
Member

wre232114 commented Jun 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants