Les documents réels du GONG (journal Gong-Information) vivaient uniquement sur l'API Strapi en ligne (api.gong.gp), pas dans le dépôt. Ils sont maintenant récupérés et intégrés en dur (le back-office Strapi peut être définitivement retiré) : - n° 16 (Mai-Juin 1966), n° spécial (Janv-Fév 1967), n° 19 (Mars-Avril-Mai 1967). - Transcription intégrale (contenu first-party) + couverture optimisée WebP (~40 Ko). - Scans PDF recompressés via Ghostscript (176 Mo → 28 Mo, 150 dpi lisibles). - Nouvelle section /archives (index + fiche par numéro), schema Article/CreativeWork. - Liens depuis nav, footer, accueil, publications ; ajout au sitemap ; PWA globIgnores. npm run check : 0/0 · build : 32 pages. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
747 B
TypeScript
27 lines
747 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { imagetools } from 'vite-imagetools';
|
|
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
imagetools(),
|
|
SvelteKitPWA({
|
|
registerType: 'autoUpdate',
|
|
injectRegister: false,
|
|
manifest: false,
|
|
workbox: {
|
|
globPatterns: ['**/*.{js,css,html,svg,woff2,webp,avif,png,ico}'],
|
|
navigateFallback: '/offline/index.html',
|
|
navigateFallbackDenylist: [/\.(?:pdf|mp4|webm|mp3)$/i],
|
|
globIgnores: ['**/assets/*.pdf', '**/archives/*.pdf'],
|
|
maximumFileSizeToCacheInBytes: 3 * 1024 * 1024,
|
|
cleanupOutdatedCaches: true,
|
|
clientsClaim: true,
|
|
skipWaiting: true
|
|
}
|
|
})
|
|
]
|
|
});
|