diff --git a/index.html b/index.html index 2bda169..fa03f6b 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ /> - + haslo.ch - Techno and Plugins from Bern, Switzerland diff --git a/vite.config.js b/vite.config.js index c7de658..42fb349 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,33 @@ -import { defineConfig } from 'vite'; -import react from '@vitejs/plugin-react'; +import {defineConfig} from 'vite' +import react from '@vitejs/plugin-react' +import path from 'path' + +// Custom plugin to add data-cookieconsent="ignore" to the main script +const addCookieConsentIgnore = () => { + return { + name: 'add-cookie-consent-ignore', + transformIndexHtml(html) { + return html.replace( + /