Skip to content

Commit c21facb

Browse files
committed
fix: escape tailwind error for a sec.
1 parent 61b1a19 commit c21facb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,14 @@ const css_command = `npx tailwindcss -c tailwind.config.js -o ${normalizePath(
185185
join(config["build-directory"], "/bundle.css")
186186
)}`;
187187

188+
console.log({ css_command });
189+
188190
function buildCSS() {
189-
return new Promise((resolve, reject) => {
191+
return new Promise((resolve) => {
190192
exec(css_command, (err, _stdout, _stderr) => {
191193
if (err) {
192-
reject("CSS compilation error:" + String(err));
194+
console.error("CSS compilation error:", String(err));
195+
resolve(undefined);
193196
} else {
194197
resolve(undefined);
195198
}

0 commit comments

Comments
 (0)