-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build with Vite #311
Build with Vite #311
Conversation
Vite is a significantly faster builder than Webpack which the JS ecosystem seems to be adopting widely. We're already using for Compound Web, and Storybook makes it pretty simple to swap it out for Webpack, so that's what I've done here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth getting another review from someone on Web. Other than Cloudflare failing this looks fine to me, but I can't say I really know what I'm looking at 🙈
As per discussion with @dbkr the Cloudflare failure is because vite requires a newer version of Node than we have configured. https://gitlab.matrix.org/infrastructure/cloudflare/-/merge_requests/232 to change this in preview, will also need changing in production once confirmed it works and is safe to do |
Deploying with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sensible!
@benbz Can we go ahead and change the Node version in production? The preview is working, so I'm ready to merge this once production is updated. |
https://gitlab.matrix.org/infrastructure/cloudflare/-/merge_requests/236 for production. Good for me to merge and apply? |
Vite is a significantly faster builder than Webpack which the JS ecosystem seems to be adopting widely. We're already using it successfully for Compound Web, and Storybook makes it pretty simple to swap it out for Webpack, so that's what I've done here.