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

Properly Integrate TailwindCSS into codebase #18

Open
faramafu opened this issue Oct 10, 2023 · 3 comments
Open

Properly Integrate TailwindCSS into codebase #18

faramafu opened this issue Oct 10, 2023 · 3 comments

Comments

@faramafu
Copy link

Issue Description:

I've identified an opportunity to enhance this project by properly integrating Tailwind CSS into it. Currently, Tailwind CSS is inserted manually, and Blade templates are used for style reuse. However, I'd like to help improve this setup by integrating TailwindCSS with the Vite builder to enable tree shaking.

Status:

Current:
Tailwind CSS inserted manually, using Blade templates for reuse.
Plan:
Integrate with Vite builder, enable tree shaking.

Expected Behavior:

TailwindCSS should be properly integrated into the project, with the ability to leverage Vite for more efficient asset management and tree shaking.

Additional Context:

I believe this enhancement will not only streamline the development process for THIS project but also improve performance by eliminating unused CSS from the final build. Looking forward to discussing the implementation details and potential challenges.

@faramafu faramafu changed the title Properly Integrate TailwindCSS into Laravel Properly Integrate TailwindCSS into codebase Oct 10, 2023
@akbarhlubis
Copy link
Contributor

Agreed, selain lebih optimize size css nya, dari segi design juga bisa lebih mudah di customize dibanding Bootstrap.

Mungkin challenge nya lebih ke ekstra pembuatan komponen responsive nya yang kalau dibanding Bootstrap yang biasanya sudah include responsif dan animation nya.

Solusinya kalau biar cepat bisa pakai Alpine.js maybe(?)

@AaEzha
Copy link
Contributor

AaEzha commented Oct 10, 2023

saya gak ada masalah untuk styling. saat ini pakai Bootstrap karena paling sederhana dan memang yang saya mampu. Justru ingin belajar TailwindCSS sekalian nyemplung ke projek real.

@rasyidf
Copy link

rasyidf commented Oct 11, 2023

mjb, kalau memang pakai bootstrap, mungkin bisa di integrate bootstrap nya ke vite.config.ts nya daripada di pasang di composer, sekarang bootstrap juga ada treeshaking

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

4 participants