1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-26 04:52:43 +00:00

Now building scss within the content processor

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-02-28 09:15:21 -08:00
parent 133cd48bbc
commit 6ca289017f
9 changed files with 116 additions and 257 deletions

View File

@@ -33,6 +33,13 @@ const actions = {
return body;
},
async write ({ output, content }) {
output = resolve(output);
await fs.ensureDir(path.dirname(output));
await fs.writeFile(output, content);
return Buffer.from(content);
},
async image (options) {
const output = resolve(options.output);
const contents = await readFile(options.input);