I’m wondering what people are using for front-end builds these days with EE. We’ve been using Laravel Mix for a few years but it looks like that’s being abandoned for Vite. I tried Vite but it doesn’t seem appropriate for EE projects. Anyone have recommendations for building CSS and JS with EE sites using Tailwindcss?
So we use @Stephen Galbraith’s add-on: https://github.com/nerdgency/ee-vitesse
And then, our vite.config and tailwind.config go in the document root. These assume that you are using a public folder, and do NOT have your system folder in the same folder according to the best practices.
<link rel="preload" href="{exp:vitesse:asset resource='resources/css/app.css'}" as="style" />
<link rel="stylesheet" href="{exp:vitesse:asset resource='resources/css/app.css'}" />
<link rel="preload" href="{exp:vitesse:asset resource='resources/css/fa.css'}" as="style" />
<link rel="stylesheet" href="{exp:vitesse:asset resource='resources/css/fa.css'}" />Frontend… simple sites i still use Foundation, since it can be pretty light weight, and i’m used to the syntax. When it gets more complicated… i roll my own. straight up html/css/vanilla js or jquery. I’ve seen and used all that frontend crap over the years. No more SASS, LESS, SCSS, tailwind or any other halleluja frontend miracle framework (abandonware) for me. It should all be doable with a text editor, headbanging and the F5 key
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.