Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'astro/config';
import { defineConfig, svgoOptimizer } from 'astro/config';
import { createReadStream, existsSync } from 'fs';
import { join } from 'path';
import tailwindcss from '@tailwindcss/vite';
Expand Down Expand Up @@ -224,6 +224,32 @@ export default defineConfig({
allowedHosts: ['datumproxy.net', '.datumproxy.net'],
},
},
experimental: {},
experimental: {
// Optimizes SVGs imported as components (inlined into the HTML). Overrides keep
// what the line-draw animation and inline rendering rely on:
// - cleanupIds: minified ids (a, b, …) collide across SVGs inlined on one page
// - convertShapeToPath: `rect[data-line-draw]` is selected by tag name
// - mergePaths: each `path[data-line-draw]` animates on its own
// - collapseGroups: keeps `[data-line-draw-panel]` on its group
// - removeEmptyAttrs: would drop `data-line-draw=""` markers
// - inlineStyles: keeps class hooks inside SVGs that carry a <style> block
svgOptimizer: svgoOptimizer({
plugins: [
{
name: 'preset-default',
params: {
overrides: {
cleanupIds: false,
convertShapeToPath: false,
mergePaths: false,
collapseGroups: false,
removeEmptyAttrs: false,
inlineStyles: false,
},
},
},
],
}),
},
prefetch: true,
});
704 changes: 0 additions & 704 deletions public/fonts/datum/allianceno1-medium-demo.html

This file was deleted.

704 changes: 0 additions & 704 deletions public/fonts/datum/allianceno1-medium-italic-demo.html

This file was deleted.

704 changes: 0 additions & 704 deletions public/fonts/datum/allianceno1-regular-demo.html

This file was deleted.

704 changes: 0 additions & 704 deletions public/fonts/datum/allianceno1-regular-italic-demo.html

This file was deleted.

704 changes: 0 additions & 704 deletions public/fonts/datum/allianceno1-semibold-demo.html

This file was deleted.

703 changes: 0 additions & 703 deletions public/fonts/datum/canelatextlcweb-regular-demo.html

This file was deleted.

695 changes: 0 additions & 695 deletions public/fonts/datum/frontliner-light-demo.html

This file was deleted.

5 changes: 0 additions & 5 deletions public/fonts/datum/generator_config.txt

This file was deleted.

Loading
Loading