Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
chore(dev): suppres warning due to lack of type defs in `@tailwindcss…
Browse files Browse the repository at this point in the history
…/vite`

Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
  • Loading branch information
feryardiant committed Apr 1, 2024
1 parent 958c426 commit 9070613
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// @ts-ignore
import { resolve } from 'node:path'

// @ts-expect-error There's no type definition for `@tailwindcss/vite` at the moment
import tailwindcss from '@tailwindcss/vite'
import laravel from 'laravel-vite-plugin'
import { resolve } from 'path'
import { defineConfig, loadEnv } from 'vite'

export default defineConfig(({ mode }) => {
const env = loadEnv(mode, './workbench', ['APP', 'VITE'])
const isDev = ['local', 'testing'].includes(env.APP_ENV)
const rootDir = 'resources/client'

return {
Expand All @@ -17,6 +19,10 @@ export default defineConfig(({ mode }) => {
},
},

build: {
sourcemap: isDev,
},

plugins: [
/**
* @see https://laravel.com/docs/vite
Expand All @@ -29,7 +35,7 @@ export default defineConfig(({ mode }) => {
refresh: true,
}),

tailwindcss()
tailwindcss(),
],
}
})

0 comments on commit 9070613

Please sign in to comment.