Skip to content

Comments

Add webpack installation guide and multi-tab support for frameworks#2456

Open
adamwathan wants to merge 2 commits intomainfrom
claude/add-tailwind-webpack-plugin-nlmWY
Open

Add webpack installation guide and multi-tab support for frameworks#2456
adamwathan wants to merge 2 commits intomainfrom
claude/add-tailwind-webpack-plugin-nlmWY

Conversation

@adamwathan
Copy link
Member

Summary

This PR adds a new webpack installation guide for Tailwind CSS and introduces tabbed installation instructions for framework guides (Next.js and Gatsby), allowing users to choose between PostCSS and webpack setup methods.

Key Changes

  • New webpack installation guide: Created a standalone installation page (using-webpack/page.tsx) with step-by-step instructions for integrating Tailwind CSS as a webpack loader, including webpack configuration, CSS imports, and build process setup.

  • Tabbed framework guides: Updated Next.js and Gatsby framework guides to support multiple installation methods:

    • Added Tab type and tabs export to define available installation methods
    • Added tabs property to individual steps to show/hide content based on selected tab
    • Provided webpack-specific configuration steps for both frameworks (Next.js webpack config in next.config.mjs, Gatsby webpack config in gatsby-node.js)
  • Navigation updates:

    • Added "Using webpack" tab to the installation layout navigation
    • Updated framework guides CTA to reference the new webpack guide
    • Added breadcrumb support for the webpack installation page
  • Minor fixes: Corrected whitespace and formatting inconsistencies in existing framework guide files

Implementation Details

The tabbed interface allows framework guides to present both PostCSS and webpack installation paths, with steps conditionally displayed based on the selected tab. Each framework's webpack configuration is tailored to its specific build system (Next.js uses webpack hooks in config, Gatsby uses gatsby-node.js exports).

https://claude.ai/code/session_01JNJXkaygF6fwvXG7CiZrkF

- Add new "Using webpack" installation tab page with step-by-step guide
  for configuring @tailwindcss/webpack as a loader in webpack projects
- Add webpack tab to installation layout alongside Vite, PostCSS, etc.
- Update Next.js framework guide with PostCSS/webpack tab options
- Update Gatsby framework guide with PostCSS/webpack tab options
- Add breadcrumb for the new webpack installation page
- Update framework guides CTA to mention the webpack loader option

https://claude.ai/code/session_01JNJXkaygF6fwvXG7CiZrkF
@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tailwindcss-com Ready Ready Preview, Comment Feb 18, 2026 8:10pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants