mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 03:02:12 +02:00
The @tailwindcss/vite plugin was not registered, causing all Tailwind styles to be ignored in the web app. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
839 B
TypeScript
34 lines
839 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
|
import { createPWAConfig } from '@manacore/shared-pwa';
|
|
import { MANACORE_SHARED_PACKAGES, getBuildDefines } from '@manacore/shared-vite-config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
sveltekit(),
|
|
SvelteKitPWA(
|
|
createPWAConfig({
|
|
name: 'Zitare - Zitate',
|
|
shortName: 'Zitare',
|
|
description: 'Tägliche Inspiration und Zitate',
|
|
themeColor: '#f59e0b',
|
|
})
|
|
),
|
|
],
|
|
server: {
|
|
port: 5107,
|
|
strictPort: true,
|
|
},
|
|
ssr: {
|
|
noExternal: [...MANACORE_SHARED_PACKAGES, '@zitare/content'],
|
|
},
|
|
optimizeDeps: {
|
|
exclude: [...MANACORE_SHARED_PACKAGES, '@zitare/content'],
|
|
},
|
|
define: {
|
|
...getBuildDefines(),
|
|
},
|
|
});
|