Skip to content

Commit

Permalink
execute tailwind script synchronously so vercel build works
Browse files Browse the repository at this point in the history
  • Loading branch information
recursiveforte committed Aug 22, 2024
1 parent 8146baf commit c743bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import path from 'path';
import alias from 'esbuild-plugin-alias';
import inlineWorkerPlugin from 'esbuild-plugin-inline-worker';

import { spawn } from 'child_process';
import { execSync } from 'child_process';

import { wrapHTML } from "./backend/wrapHTML.js";

Expand All @@ -16,7 +16,7 @@ import gallery from "./backend/pages/gallery.js";
import landing from "./backend/pages/landing.js";
import docs from "./backend/pages/docs.js";

spawn('npx', ['tailwindcss', '-i', './styles.css', '-o', './dist/styles.css']);
execSync('npx tailwindcss -i ./styles.css -o ./dist/styles.css');

const OUTPUT_DIR = "./dist";

Expand Down

0 comments on commit c743bee

Please sign in to comment.