Skip to content

Commit

Permalink
execute tailwind script at end + await so built files are included
Browse files Browse the repository at this point in the history
  • Loading branch information
recursiveforte committed Aug 22, 2024
1 parent c743bee commit f595420
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import gallery from "./backend/pages/gallery.js";
import landing from "./backend/pages/landing.js";
import docs from "./backend/pages/docs.js";

execSync('npx tailwindcss -i ./styles.css -o ./dist/styles.css');

const OUTPUT_DIR = "./dist";

// Function to bundle script sources found in HTML
Expand Down Expand Up @@ -100,7 +98,7 @@ export async function build(htmls) {
// console.timeEnd("COPY")
}

build({
await build({
index: wrapHTML(`
${navBar(true)}
${landing()}
Expand Down Expand Up @@ -136,3 +134,5 @@ build({
`),

});

execSync('npx tailwindcss -i ./styles.css -o ./dist/styles.css');

0 comments on commit f595420

Please sign in to comment.