-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathastro.config.mjs
More file actions
47 lines (45 loc) · 1.5 KB
/
Copy pathastro.config.mjs
File metadata and controls
47 lines (45 loc) · 1.5 KB
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
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import compress from 'astro-compress'
import icon from 'astro-icon'
import tailwindcss from '@tailwindcss/vite'
import { fileURLToPath } from 'url'
import sitemap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig({
compressHTML: true,
site: 'https://quickdungeoncrawler.com',
trailingSlash: 'always',
integrations: [
mdx(),
icon(),
// Vite already minifies the generated CSS. Running CSSO over Tailwind 4's
// range media queries removes the responsive utility rules in production.
compress({ CSS: false }),
sitemap(),
],
vite: {
css: {
preprocessorOptions: {
scss: {
logger: {
warn: () => {},
},
},
},
},
plugins: [tailwindcss()],
resolve: {
alias: {
'@components': fileURLToPath(new URL('./src/components', import.meta.url)),
'@layouts': fileURLToPath(new URL('./src/layouts', import.meta.url)),
'@assets': fileURLToPath(new URL('./src/assets', import.meta.url)),
'@content': fileURLToPath(new URL('./src/content', import.meta.url)),
'@pages': fileURLToPath(new URL('./src/pages', import.meta.url)),
'@public': fileURLToPath(new URL('./public', import.meta.url)),
'@post-images': fileURLToPath(new URL('./public/posts', import.meta.url)),
'@project-images': fileURLToPath(new URL('./public/projects', import.meta.url)),
},
},
},
})