-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathastro.config.mjs
46 lines (42 loc) · 967 Bytes
/
astro.config.mjs
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
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import playformCompress from "@playform/compress";
import terser from "@rollup/plugin-terser";
import swup from "@swup/astro";
import astroI18next from "astro-i18next";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
import dotenv from "dotenv";
dotenv.config();
// https://astro.build/config
export default defineConfig({
site: "https://shuoshuo.saroprock.com",
style: {
scss: {
includePaths: ["./src/styles"],
},
},
integrations: [
icon(),
swup({
cache: true,
progress: true,
accessibility: true,
smoothScrolling: true,
preload: {
hover: true,
visible: false,
},
theme: "slide",
containers: ["#swup"],
}),
terser({
compress: true,
mangle: true,
}),
sitemap(),
tailwind(),
astroI18next(),
playformCompress(),
],
});