-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
vite.config.ts
34 lines (32 loc) · 900 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { sveltekit } from '@sveltejs/kit/vite'
import { SvelteKitPWA as pwa } from '@vite-pwa/sveltekit'
// @ts-expect-error ts(7016)
import LightningCSS from 'postcss-lightningcss'
import TailwindCSS from 'tailwindcss'
import unoCSS from 'unocss/vite'
import { defineConfig } from 'vite'
import { imagetools } from 'vite-imagetools'
import tailwindConfig from './tailwind.config'
import unoConfig from './uno.config'
export default defineConfig({
css: {
postcss: {
plugins: [TailwindCSS(tailwindConfig), LightningCSS()],
},
},
envPrefix: 'URARA_',
plugins: [
unoCSS(unoConfig),
imagetools(),
sveltekit(),
pwa({
manifest: false,
registerType: 'autoUpdate',
scope: '/',
workbox: {
globIgnores: ['**/sw*', '**/workbox-*'],
globPatterns: ['posts.json', '**/*.{js,css,html,svg,ico,png,webp,avif}'],
},
}),
],
})