Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR migrates from the deprecated @astrojs/tailwind integration to the new @tailwindcss/vite plugin (Tailwind CSS v4), resolving multiple Dependabot security alerts. The migration involves updating the Astro configuration to use Vite plugins and changing how Tailwind CSS is imported in stylesheets.
Key Changes:
- Replaced
@astrojs/tailwindwith@tailwindcss/viteplugin in Astro configuration - Updated Tailwind CSS stylesheet import from directives to
@import "tailwindcss" - Updated multiple dependencies to their latest versions
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| astro.config.mjs | Replaced Tailwind integration with Vite plugin configuration |
| package.json | Updated dependencies including Tailwind CSS v4 and removed deprecated package |
| src/styles/global.css | Changed Tailwind import method from directives to CSS import statement |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #30 #28 #27 #26 #25
This pull request updates the project's Tailwind CSS integration to use the new
@tailwindcss/viteplugin instead of the deprecated@astrojs/tailwindintegration. It also updates several dependencies to their latest versions and modifies the way Tailwind is imported in the global styles.Tailwind CSS integration migration:
@astrojs/tailwindwith@tailwindcss/vitein bothastro.config.mjsandpackage.json, updating the integration to use the new Vite plugin approach. (astro.config.mjs,package.json) [1] [2] [3]src/styles/global.cssto use@import "tailwindcss";at the top of the file, and removed the old Tailwind directive comments. (src/styles/global.css) [1] [2]Dependency updates:
@primer/react-brand,framer-motion,preact,tailwindcss, andbaseline-browser-mapping. (package.json)