Skip to content

Replace standalone Tailwind CSS with npm package#38

Merged
antosubash merged 1 commit intomainfrom
feature/exciting-volhard
Mar 31, 2026
Merged

Replace standalone Tailwind CSS with npm package#38
antosubash merged 1 commit intomainfrom
feature/exciting-volhard

Conversation

@antosubash
Copy link
Copy Markdown
Owner

Changes

  • Replaces manual Tailwind CSS binary downloads with @tailwindcss/cli npm package
  • Removes tools/download-tailwind.sh and tools/download-tailwind.ps1 scripts
  • Updates .gitignore to remove tailwindcss binary exclusion
  • Creates reusable GitHub Actions workflow .github/actions/setup-build for DRY build steps
  • Updates CI/CD workflows to use the new setup action and npm-based Tailwind
  • Refactors Dockerfile to separate npm restore into its own stage for better caching
  • Updates build targets to reference Tailwind from node_modules/.bin instead of tools/
  • Updates ViteDevWatchService to use npm-installed Tailwind CLI
  • Large package-lock.json update to reflect new Tailwind CLI and its dependencies (@parcel/watcher, lightningcss)

Benefits

  • Simplified dependency management (Tailwind via npm instead of manual binary downloads)
  • Improved CI/CD maintainability with reusable action
  • Better Docker layer caching by separating npm restore
  • Removes platform-specific binary handling complexity

- Add @tailwindcss/cli as devDependency, removing the need to manually
  download the standalone binary
- Update MSBuild TailwindBuild target to use node_modules/.bin/tailwindcss
  directly (with .cmd on Windows) instead of tools/tailwindcss
- Add TailwindBuildCheck target that warns when node_modules is missing
- Update ViteDevWatchService to use _npmBinPath for Tailwind CLI resolution
  with proper Windows .cmd handling
- Remove download-tailwind.sh and download-tailwind.ps1 scripts
- Remove standalone CLI download steps from CI, release, and Dockerfile
- Add npm-restore stage to Dockerfile for proper layer caching
- Extract duplicated CI setup into .github/actions/setup-build composite
  action with parallel npm ci + dotnet restore
- Add NuGet package caching to CI workflows
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying simplemodule-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 00c7567
Status: ✅  Deploy successful!
Preview URL: https://bbb6a09b.simplemodule-website.pages.dev
Branch Preview URL: https://feature-exciting-volhard.simplemodule-website.pages.dev

View logs

@antosubash antosubash merged commit d0e5d5d into main Mar 31, 2026
3 of 4 checks passed
@antosubash antosubash deleted the feature/exciting-volhard branch April 1, 2026 15:15
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.

1 participant