-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathastro.config.ts
41 lines (38 loc) · 934 Bytes
/
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
import { defineConfig } from "astro/config"
// Astro integration imports
import tailwind from "@astrojs/tailwind"
import sitemap from "@astrojs/sitemap"
import compress from "astro-compress"
import { VitePWA } from "vite-plugin-pwa"
// Helper imports
import { manifest, seoConfig } from "./utils/seoConfig"
export default defineConfig({
site: seoConfig.baseURL,
integrations: [
tailwind({
config: {
applyBaseStyles: false,
path: "./tailwind.config.js"
}
}),
sitemap(),
compress()
],
vite: {
plugins: [
VitePWA({
registerType: "autoUpdate",
manifest,
workbox: {
globDirectory: 'dist',
globPatterns: [
'**/*.{js,css,svg,png,jpg,jpeg,gif,webp,woff,woff2,ttf,eot,ico}',
],
// Don't fallback on document based (e.g. `/some-page`) requests
// This removes an errant console.log message from showing up.
navigateFallback: null,
},
})
]
}
})