We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

What to use for front-end builds?

Development and Programming

User sqqnM5TM's avatar
User sqqnM5TM
5 posts
6 days ago
User sqqnM5TM's avatar User sqqnM5TM

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?

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh

We use Tailwind with Vite on the frontend, works great. We have an EE add-on that does the asset management in the template (no hot reloading yet).

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh

Allows for js and css, similar set up to Laravel (/resources/js and /resources/css)

       
User sqqnM5TM's avatar
User sqqnM5TM
5 posts
6 days ago
User sqqnM5TM's avatar User sqqnM5TM

I liked the look of Vite but couldn’t see how to get it working with EE. Also, monitoring changes to templates to trigger tailwind to recompile wasn’t obvious. I probably didn’t give it enough thought. Interested in how you’re doing it though.

       
User qIVqDu27's avatar
User qIVqDu27
13 posts
6 days ago
User qIVqDu27's avatar User qIVqDu27

I feel old school by saying: none of the above

       
User qIVqDu27's avatar
User qIVqDu27
13 posts
6 days ago
User qIVqDu27's avatar User qIVqDu27

¯\_(ツ)_/¯

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh

I’ll pull it together for you, give me a day or so

       
User qIVqDu27's avatar
User qIVqDu27
13 posts
6 days ago
User qIVqDu27's avatar User qIVqDu27

we don’t use tailwind, or even bootstrap… we just roll our own HTML (with some starting points common to our builds)

       
User sqqnM5TM's avatar
User sqqnM5TM
5 posts
6 days ago
User sqqnM5TM's avatar User sqqnM5TM

Thanks @dougblackjr

       
User sqqnM5TM's avatar
User sqqnM5TM
5 posts
6 days ago
User sqqnM5TM's avatar User sqqnM5TM

@creativearc used to do that here. It’s temping to go back to the old school way!

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh

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.

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh

Then templates look like….

       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh
<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'}" />
       
User iC5U2Ymh's avatar
User iC5U2Ymh
14 posts
6 days ago
User iC5U2Ymh's avatar User iC5U2Ymh

And this plugin does hot reloading

       
jelle's avatar
jelle
95 posts
6 days ago
jelle's avatar jelle

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

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.