-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
52 lines (51 loc) · 1.03 KB
/
astro.config.ts
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import purgecss from 'astro-purgecss';
import sitemap from '@astrojs/sitemap';
import icon from 'astro-icon';
export default defineConfig({
site: 'https://www.forgingmodernity.com/',
build: {
inlineStylesheets: 'never', // required for purgecss
},
integrations: [
icon({
include: {
mdi: ['cart'],
lucide: ['pointer'],
},
}),
svelte(),
// purgecss({
// keyframes: false,
// fontFace: false,
// variables: true,
// safelist: {
// greedy: [
// /.*astro.*/,
// /leaflet-pane/,
// /leaflet-map/,
// /leaflet-control/,
// /leaflet-bar/,
// /leaflet-disabled/,
// /leaflet-top/,
// /leaflet-left/,
// /parchment/,
// ],
// },
// // content: [process.cwd() + '/src/**/*.{astro,svelte}'],
// }),
sitemap(),
],
vite: {
resolve: {
alias: [
{
// this is required for the SCSS modules
find: /^~(.*)$/,
replacement: 'src/$1',
},
],
},
},
});