Skip to content

Commit

Permalink
Ful佬说的对
Browse files Browse the repository at this point in the history
  • Loading branch information
lutinglt committed Feb 17, 2025
1 parent 5bba897 commit 49812f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
node_modules
deno.lock
3 changes: 2 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno run -A --allow-scripts
#!/usr/bin/env -S deno run -A --allow-scripts -q

import * as sass from "npm:sass";
import * as yaml from "npm:js-yaml";
Expand All @@ -25,6 +25,7 @@ async function buildTheme(themePath: string) {
const outputFile = "dist/theme-github.css";

const result = await sass.compileAsync(inputFile, { sourceMap: false, style: "compressed" });
await Deno.mkdir("dist", { recursive: true });
await Deno.writeTextFile(outputFile, result.css);

const fileContent = await Deno.readTextFile(themePath);
Expand Down

0 comments on commit 49812f0

Please sign in to comment.