-
Notifications
You must be signed in to change notification settings - Fork 10
/
greenwood.config.js
52 lines (51 loc) · 1.41 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
45
46
47
48
49
50
51
52
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'
]
}
};