From 56ba2f4fa75c0abe45c231533b5d2edd9791a0ec Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Fri, 1 Nov 2024 07:16:12 -0400 Subject: [PATCH] feat(build): add support for parsing inline sass (#1558) --- quartz/cli/handlers.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js index ed1c0e2..5538152 100644 --- a/quartz/cli/handlers.js +++ b/quartz/cli/handlers.js @@ -44,7 +44,7 @@ export async function handleCreate(argv) { let linkResolutionStrategy = argv.links?.toLowerCase() const sourceDirectory = argv.source - // If all cmd arguments were provided, check if theyre valid + // If all cmd arguments were provided, check if they're valid if (setupStrategy && linkResolutionStrategy) { // If setup isn't, "new", source argument is required if (setupStrategy !== "new") { @@ -236,6 +236,11 @@ export async function handleBuild(argv) { type: "css-text", cssImports: true, }), + sassPlugin({ + filter: /\.inline\.scss$/, + type: "css", + cssImports: true, + }), { name: "inline-script-loader", setup(build) {