Files
Untrace/vite.config.js
T
SharifandClaude Sonnet 5.5 6d5e92b14d Add four more privacy guides and keep CNAME in the build
Windows/Mac removal, viewing EXIF, social media behaviour and a sharing
checklist. public/CNAME stops gh-pages deploys from dropping the custom
domain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 07:30:48 +06:00

28 lines
882 B
JavaScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { resolve } from 'node:path'
const guides = ['', 'remove-gps-from-photo', 'remove-exif-data-iphone', 'remove-exif-data-android', 'remove-exif-data-windows-mac', 'how-to-view-exif-data', 'do-social-media-sites-remove-exif-data', 'photo-metadata-privacy-checklist', 'what-is-exif-data', 'what-is-c2pa']
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
base: '/',
build: {
outDir: 'dist',
assetsDir: 'assets',
cssMinify: 'lightningcss',
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
...Object.fromEntries(
guides.map((slug) => [
`guides-${slug || 'index'}`,
resolve(__dirname, 'guides', slug, 'index.html'),
])
),
},
},
},
})