Bootstrap 5 and scss usage in Phoenix 1.6

Since I see more and more questions about setting up frontend tools for Phoenix 1.6 I’m gonna leave the links of two recent threads I’ve contributed to for posterity:

After testing both approaches for some time I have to say that using Vite Js will be perfect if you just want things to work and forget about it.

PS.: Since Phoenix doesn’t make any assumptions of your frontend tooling, you basically just have to set up things like you would for any other framework out there. Perhaps the only difference is going to be the watcher configuration so you can get code-reload for your dev environment.

3 Likes