finds.dev← search

// the find

JeffreyWay/laravel-mix-tailwind

★ 343 · JavaScript · updated Jan 2021

mix.tailwind()

A Laravel Mix extension that adds a `.tailwind()` method to your webpack.mix.js build chain, wiring up Tailwind CSS processing in one line. It was a thin convenience wrapper for Laravel projects before Tailwind's own CLI and JIT mode made this kind of glue unnecessary.

Extremely minimal surface area — the entire implementation is a single index.js file. Did its job well when Mix v2 + Tailwind v1 was the standard Laravel stack.

Abandoned in 2021 and targets Tailwind v1 syntax (`tailwind.js` config, `@import 'tailwindcss/base'`) — all of which changed in v2 and v3. Modern Tailwind has a first-class CLI and PostCSS plugin that makes this wrapper redundant; there is no reason to add this dependency to a new project. The README still points to old Tailwind docs that no longer exist at those URLs.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →