// Dieses Skript entfernt alle Manifest-Links außer /manifest.webmanifest aus dist/index.html const fs = require('fs'); const path = require('path'); const htmlPath = path.join(__dirname, 'dist', 'index.html'); let html = fs.readFileSync(htmlPath, 'utf8'); // Entferne alle Manifest-Links html = html.replace(/]*?>/g, ''); // Füge nur den richtigen Manifest-Link ein (falls nicht vorhanden) if (!html.includes('')) { html = html.replace('', ' \n'); } fs.writeFileSync(htmlPath, html, 'utf8'); console.log('Manifest-Links in dist/index.html automatisch korrigiert.');