Skip to content

Commit a936f11

Browse files
authored
Add missing wasp() plugin to vite.config.ts examples in Tailwind migration guide (#3840)
The example in the 'Option B: Upgrade to Tailwind CSS v4' section of the migration guide was missing the required wasp() plugin import and call. This fix updates both the current docs and the versioned 0.21 docs to match the correct example in the Tailwind CSS guide.
1 parent f87fb92 commit a936f11

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

web/docs/migration-guides/migrate-from-0-20-to-0-21.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,14 @@ Wasp no longer manages Tailwind CSS internally, so there are a few changes regar
309309
1. Add the `@tailwindcss/vite` plugin to your `vite.config.{js,ts}` file.
310310
311311
```ts title="vite.config.ts"
312+
import { wasp } from 'wasp/client/vite';
312313
// highlight-next-line
313314
import tailwindcss from '@tailwindcss/vite';
314315
import { defineConfig } from 'vite';
315316
316317
export default defineConfig({
317318
plugins: [
319+
wasp(),
318320
// highlight-next-line
319321
tailwindcss(),
320322
],

web/versioned_docs/version-0.21/migration-guides/migrate-from-0-20-to-0-21.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,14 @@ Wasp no longer manages Tailwind CSS internally, so there are a few changes regar
309309
1. Add the `@tailwindcss/vite` plugin to your `vite.config.{js,ts}` file.
310310
311311
```ts title="vite.config.ts"
312+
import { wasp } from 'wasp/client/vite';
312313
// highlight-next-line
313314
import tailwindcss from '@tailwindcss/vite';
314315
import { defineConfig } from 'vite';
315316
316317
export default defineConfig({
317318
plugins: [
319+
wasp(),
318320
// highlight-next-line
319321
tailwindcss(),
320322
],

0 commit comments

Comments
 (0)