new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Tailwind CSS v4 · all subjects

asked in real use

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

@tailwindcss/webpack plugin performance in v4.2

Tailwind CSS v4.2 added a dedicated @tailwindcss/webpack loader for integrating Tailwind in webpack projects. This skips the PostCSS detour that @tailwindcss/postcss requires, resulting in significant performance improvements. Testing on tailwindcss.com docs with Next.js and Turbopack showed @tailwindcss/webpack at 429ms compared to @tailwindcss/postcss at 932ms, a 2.17x improvement.

@tailwindcss/webpack configuration example

To use @tailwindcss/webpack in webpack projects, configure it in webpack.config.js like other webpack loaders. Example: module: { rules: [{ test: /\.css$/i, use: [MiniCssExtractPlugin.loader, 'css-loader', '@tailwindcss/webpack'] }] }. Because Turbopack supports webpack loaders through its compatibility layer, these improvements carry over to Turbopack used in frameworks like Next.js.

Installation commands for Tailwind CSS v4.3 and v4.2

To upgrade to Tailwind CSS v4.3 or install v4.2, use npm install with the appropriate build tool integration: Tailwind CLI: npm install tailwindcss@latest @tailwindcss/cli@latest; Vite: npm install tailwindcss@latest @tailwindcss/vite@latest; PostCSS: npm install tailwindcss@latest @tailwindcss/postcss@latest; webpack: npm install tailwindcss@latest @tailwindcss/webpack@latest.

Give your agent this brain