-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path_config.ts
63 lines (60 loc) · 1.52 KB
/
_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
53
54
55
56
57
58
59
60
61
62
63
import lume from "lume/mod.ts";
import tailwindcss from "lume/plugins/tailwindcss.ts";
import postcss from "lume/plugins/postcss.ts";
import typography from "npm:@tailwindcss/typography";
import jsx from "lume/plugins/jsx.ts";
import favicon from "lume/plugins/favicon.ts";
const site = lume({
src: "./src",
dest: "./output",
// emptyDest: false,
server: {
open: true,
page404: "./404.html",
},
location: new URL("https://sitblueprint.com"),
watcher: {
debounce: 10,
},
});
site
.use(
favicon({
input: "assets/logos/logo.png",
}),
)
.use(
tailwindcss({
extensions: [".html", ".js", ".njk", ".jsx"],
options: {
content: ["./src/**/*.html", "./src/**/*.njk", "./src/**/*.jsx"],
theme: {
extend: {
colors: {
primary: "#0078E8",
secondary: "#93C9FE",
"text-color": "#333333",
negative: "#ffffff",
maroon: "#9D1535",
},
// fontFamily: {
// sans: ["Helvetica", "sans-serif"],
// serif: ["Mirador", "serif"],
// }
},
},
plugins: [typography],
},
}),
)
.use(postcss())
.copy("assets/logos")
.copy("assets/eboard")
.copy("assets/events")
.copy("assets/vector")
.copy("assets/fonts")
.copy("assets/docs")
.loadAssets([".css", ".js", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".pdf"])
.ignore("README.md", "CHANGELOG.md", "node_modules")
.use(jsx());
export default site;