Skip to content

Comments

feat(create-rsbuild): add Tailwind CSS support#6934

Merged
chenjiahan merged 1 commit intov1.xfrom
create_tailwindcss_0108
Jan 8, 2026
Merged

feat(create-rsbuild): add Tailwind CSS support#6934
chenjiahan merged 1 commit intov1.xfrom
create_tailwindcss_0108

Conversation

@chenjiahan
Copy link
Member

Summary

  • Added Tailwind CSS support to create-rsbuild
  • Updated quick start guides to include Tailwind CSS in the list of optional tools
image

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 8, 2026 09:26
@netlify
Copy link

netlify bot commented Jan 8, 2026

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 008e4e9
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/695f783256056f00075db4f4
😎 Deploy Preview https://deploy-preview-6934--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72 (🟢 up 13 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@chenjiahan chenjiahan merged commit ce19bee into v1.x Jan 8, 2026
16 checks passed
@chenjiahan chenjiahan deleted the create_tailwindcss_0108 branch January 8, 2026 09:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Tailwind CSS support to the create-rsbuild tool, allowing users to optionally include Tailwind CSS when creating new Rsbuild projects. The implementation includes templates, documentation updates, and comprehensive test coverage.

Key Changes:

  • Added Tailwind CSS as an optional tool during project creation
  • Updated documentation (English and Chinese) to reflect the new Tailwind CSS option
  • Implemented automatic insertion of Tailwind CSS import into project CSS files

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/create-rsbuild/src/index.ts Added Tailwind CSS tool configuration with action handler to copy template files and inject import statements
packages/create-rsbuild/template-tailwindcss/postcss.config.mjs PostCSS configuration template for Tailwind CSS v4
packages/create-rsbuild/template-tailwindcss/package.json Package dependencies for Tailwind CSS integration
e2e/cases/create-rsbuild/tools.test.ts Added comprehensive tests for vanilla and React projects with Tailwind CSS
website/docs/en/guide/start/quick-start.mdx Updated English documentation to include Tailwind CSS in optional tools list
website/docs/zh/guide/start/quick-start.mdx Updated Chinese documentation to include Tailwind CSS in optional tools list

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import.meta.dirname,
'react',
{
name: 'test-temp-tailwindcss',
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test name 'test-temp-tailwindcss' is duplicated from line 41. To avoid potential conflicts if tests run in parallel or if cleanup fails, consider using a unique name such as 'test-temp-react-tailwindcss' to match the pattern used in other framework-specific tests (e.g., 'test-temp-react-eslint', 'test-temp-vue-eslint').

Suggested change
name: 'test-temp-tailwindcss',
name: 'test-temp-react-tailwindcss',

Copilot uses AI. Check for mistakes.
action: async ({ distFolder }) => {
const from = path.join(__dirname, '..', 'template-tailwindcss');
copyFolder({
from: from,
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable assignment can be simplified using object property shorthand. Instead of 'from: from', you can just use 'from' in the object literal. Alternatively, the 'from' variable could be inlined directly in the copyFolder call to reduce redundancy.

Suggested change
from: from,
from,

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant