-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgreenwood.config.js
44 lines (43 loc) · 1.37 KB
/
greenwood.config.js
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
import { greenwoodPluginGraphQL } from "@greenwood/plugin-graphql";
import { greenwoodPluginIncludeHTML } from "@greenwood/plugin-include-html";
import { greenwoodPluginPolyfills } from "@greenwood/plugin-polyfills";
import { greenwoodPluginPostCss } from "@greenwood/plugin-postcss";
import { greenwoodPluginImportRaw } from "@greenwood/plugin-import-raw";
import { greenwoodPluginRendererPuppeteer } from "@greenwood/plugin-renderer-puppeteer";
import rollupPluginAnalyzer from "rollup-plugin-analyzer";
export default {
workspace: new URL("./www/", import.meta.url),
optimization: "inline",
staticRouter: true,
activeContent: true,
prerender: true,
plugins: [
greenwoodPluginGraphQL(),
greenwoodPluginPolyfills({
lit: true,
}),
greenwoodPluginPostCss(),
greenwoodPluginImportRaw({
matches: ["eve-button.css", "eve-container.css"],
}),
greenwoodPluginIncludeHTML(),
greenwoodPluginRendererPuppeteer(),
{
type: "rollup",
name: "rollup-plugin-analyzer",
provider: () => {
return [
rollupPluginAnalyzer({
summaryOnly: true,
filter: (module) => {
return !module.id.endsWith(".html");
},
}),
];
},
},
],
markdown: {
plugins: ["@mapbox/rehype-prism", "rehype-slug", "rehype-autolink-headings", "remark-github"],
},
};