-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
32 lines (30 loc) · 817 Bytes
/
astro.config.ts
File metadata and controls
32 lines (30 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { ViteUserConfig, defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import icon from "astro-icon";
import preact from "@astrojs/preact";
// https://astro.build/config
export default defineConfig({
site: 'https://chronoclast.com',
trailingSlash: 'ignore',
integrations: [
mdx(),
preact(),
icon()
],
vite: {
build: {
rollupOptions: {
output: {
manualChunks: id => {
// console.log(`Chunky ${id.substring(id.indexOf('node_modules'))}`);
if (id.includes('node_modules/babylon') || id.includes('node_modules/@babylon')) {
return 'babylon';
} else if (id.includes('node_modules/melonjs')) {
return 'melon';
}
}
}
}
}
} as ViteUserConfig
});