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

Replace webpack with vite #35

Open
XantreDev opened this issue Jun 13, 2023 · 5 comments
Open

Replace webpack with vite #35

XantreDev opened this issue Jun 13, 2023 · 5 comments

Comments

@XantreDev
Copy link
Contributor

I think we can improve DX by swapping webpack to vite.
It comes with build in css support, possibly we can add tailwind to the project.

If anyone is interesed, i can open PR

@XantreDev
Copy link
Contributor Author

Btw, i think in future we need to create something like create-rescript-app, but create-melange-app, so user can easily start and configure project

@davesnx
Copy link
Member

davesnx commented Oct 18, 2023

Hey @XantreGodlike, using vite sounds perfect. I'm working on compiling with latest melange with esy on #42

Can you try this branch!

Have a create-melange-app sounds wonderful

@ManasJayanth
Copy link
Contributor

Does pesy sound interesting? https://github.com/esy/pesy I used it in the past to bootstrap JSOO projects with templates here: https://github.com/pesy

@davesnx
Copy link
Member

davesnx commented Oct 31, 2023

The integration with vite is a little clunky, since both dune and vite want to take control over the file-system.

The integration I have seen between rescript and vite is: https://github.com/jihchi/vitejs-template-react-rescript

If we move on and make a melange one, might be nice also, but I would still want to explore the idea where dune calls vite? or vite knows about the _build folder artifacts

@XantreDev XantreDev reopened this Oct 31, 2023
@XantreDev
Copy link
Contributor Author

Closed the wrong one).
Why think start from @jihchi/vite-plugin-rescript is great starting point for melage integration with vite

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

3 participants