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

Universal plugin #3

Closed
Aslemammad opened this issue Dec 28, 2021 · 2 comments
Closed

Universal plugin #3

Aslemammad opened this issue Dec 28, 2021 · 2 comments

Comments

@Aslemammad
Copy link
Owner

Blocked by vitejs/vite#5936

@Aslemammad Aslemammad changed the title plugin directly in vite Universal plugin May 3, 2022
@Aslemammad
Copy link
Owner Author

I saw @brillout's ideas around deployment plugins! I'd like to start working on taking out vite-plugin-cloudflare from its cli form and make it a vite plugin!
I'd like to hear suggestions and how we can get into that level (since AFAIK some agreed on using vite's buildEnd hook)!

CC @brillout

@brillout
Copy link

brillout commented May 3, 2022

Yes the writeBundle() trick can be used to trigger the esbuild build at the end of $ vite build. With enforce: post, this could also work together with vite-plugin-ssr. To be tested.

As for $ vite deploy, that requires a Vite PR.

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

No branches or pull requests

2 participants