This commit is contained in:
parent
05f62f7025
commit
a91e7967b4
4 changed files with 37 additions and 40 deletions
2
index.ts
2
index.ts
|
|
@ -4,6 +4,7 @@ import Dev from "sssg/src/plugins/dev";
|
|||
import TSCompiler from "sssg/src/plugins/ts-compiler";
|
||||
import MarkdownMetadata from "sssg/src/plugins/markdown-metadata";
|
||||
import MarkdownCompiler from "sssg/src/plugins/markdown-compiler";
|
||||
import CompileTimeJS from "sssg/src/plugins/compile-time-js";
|
||||
|
||||
import * as path from "path";
|
||||
import * as fs from "fs";
|
||||
|
|
@ -15,6 +16,7 @@ const sssg = new SSSG({
|
|||
|
||||
await sssg.run({
|
||||
plugins: [
|
||||
new CompileTimeJS(),
|
||||
new Variables(() => {
|
||||
const variables: Record<string, string> = {
|
||||
__BLOG_POSTS__: JSON.stringify(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue