Snippet
Vite + Tailwind v4 config for WordPress
vite.config.mjs ready to drop into a WordPress theme. Tailwind v4 @theme block, safelist plugin, RTL stylesheet step.
A Vite build config ready to drop into a classic WordPress theme — Tailwind v4 CSS-first setup, ES-module output with a manifest, and an HMR dev server that watches PHP.
What’s in it
A vite.config.js (input assets/src/js/index.js + assets/src/styles/tailwind.css → assets/dist/), a Tailwind v4 @theme entrypoint, and a package.json with dev/build scripts. MIT.