Skip to content

Commit 74b7d90

Browse files
jldeenCopilot
andauthored
chore(deps): consolidate Dependabot updates incl. astro 7 / vite 8 migration (#117)
Combines the two open Dependabot PRs into a single change: - astro 6.4.8 -> 7.0.3 (#116) - minor-and-patch group: framer-motion, preact, tailwindcss, @playwright/test, @tailwindcss/postcss->vite, @types/node, baseline-browser-mapping (#115) Astro 7 upgrades to Vite 8, which broke the build: - Bump the vite override from ^7 to ^8 (the ^7 pin from #114 forced a Vite/Astro mismatch -> 'rollupOptions.input should not be an html file' SSR error). - Migrate Tailwind v4 from the PostCSS plugin to the official @tailwindcss/vite plugin. Vite 8's CSS pipeline could not resolve '@import "tailwindcss"' via postcss-import. Add @tailwindcss/vite, wire it into astro.config, drop @tailwindcss/postcss and postcss.config.mjs. Ignore Playwright output dirs (test-results/, playwright-report/). Verified with Node: astro build, astro check (0 errors), and the Playwright suite all pass. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 303944f commit 74b7d90

5 files changed

Lines changed: 818 additions & 1596 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ pnpm-debug.log*
2222

2323
# jetbrains setting folder
2424
.idea/
25+
test-results/
26+
playwright-report/

astro.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { defineConfig } from 'astro/config';
33
import { loadEnv } from 'vite';
44
import preact from '@astrojs/preact';
5+
import tailwindcss from '@tailwindcss/vite';
56

67
// Load environment variables
78
const { SITE, BASE_URL } = loadEnv(process.env.NODE_ENV || 'development', process.cwd(), "");
@@ -21,5 +22,10 @@ export default defineConfig({
2122
preact({ compat: true })
2223
],
2324

25+
// Vite plugins
26+
vite: {
27+
plugins: [tailwindcss()]
28+
},
29+
2430

2531
});

0 commit comments

Comments
 (0)