mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Fix Tailwind (bad)
This commit is contained in:
1 parent
0086f62247
commit
84df35de2f
1 file changed
+4
-1
@@ -104,9 +104,12 @@ function updateIndexHtml(originalHtml: string, jsFiles: string[], cssFiles: stri
|
|||||||
const script = doc.createElement('script');
|
const script = doc.createElement('script');
|
||||||
script.type = 'module';
|
script.type = 'module';
|
||||||
script.src = `/${file}`;
|
script.src = `/${file}`;
|
||||||
script.defer = true;
|
|
||||||
body.appendChild(script);
|
body.appendChild(script);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const tailwindScript = doc.createElement('script');
|
||||||
|
tailwindScript.src = 'https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4';
|
||||||
|
head.appendChild(tailwindScript);
|
||||||
|
|
||||||
return '<!DOCTYPE html>\n' + doc.documentElement.outerHTML;
|
return '<!DOCTYPE html>\n' + doc.documentElement.outerHTML;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user