Skip to content

Commit

Permalink
docs: update code highlight and step configurations in vite.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leochiu-a committed Dec 3, 2024
1 parent 5869165 commit 5d598d1
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions apps/www/src/content/docs/installation/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,9 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co

#### `vite.config`

```typescript {3,4,11-15}
import { fileURLToPath, URL } from 'node:url'

```typescript {2,3,8-12}
import vue from '@vitejs/plugin-vue'
import autoprefixer from 'autoprefixer'

import tailwind from 'tailwindcss'
import { defineConfig } from 'vite'

Expand All @@ -60,14 +57,7 @@ export default defineConfig({
plugins: [tailwind(), autoprefixer()],
},
},
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
plugins: [vue()],
})
```

Expand Down Expand Up @@ -125,12 +115,10 @@ Add the code below to the vite.config.ts so your app can resolve paths without e
npm i -D @types/node
```

```typescript {20-22}
```typescript {1,15-19}
import { fileURLToPath, URL } from 'node:url'

import vue from '@vitejs/plugin-vue'
import autoprefixer from 'autoprefixer'

import tailwind from 'tailwindcss'
import { defineConfig } from 'vite'

Expand All @@ -141,9 +129,7 @@ export default defineConfig({
plugins: [tailwind(), autoprefixer()],
},
},
plugins: [
vue(),
],
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
Expand Down

0 comments on commit 5d598d1

Please sign in to comment.