This commit is contained in:
Kentai Radiquum 2025-02-13 11:48:22 +05:00
parent 50ac1c1d7f
commit 70cc31b834
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 1 additions and 20 deletions

View file

@ -43,24 +43,5 @@ if (environment == "dev") {
log.info(stdout);
}
);
const transpiler = new Bun.Transpiler({
loader: "js",
target: "browser",
minifyWhitespace: true,
});
const files = fs.readdirSync("src/static/js");
const minify = files.filter((file) => file.endsWith(".js"));
minify.forEach((file) => {
const ext = file.split(".")[file.split(".").length - 1];
const name = file.split(".")[0];
const orFile = fs.readFileSync(`src/static/js/${file}`, {
encoding: "utf-8",
});
const minFile = transpiler.transformSync(orFile);
fs.writeFileSync(`out/static/js/${name}.${ext}`, minFile);
});
}
fs.writeFileSync("out/index.html", `<!DOCTYPE html />${html}`);

View file

@ -8,7 +8,7 @@ interface BaseProps {
export default function Base({ children, isDev }: BaseProps) {
return (
<>
<html lang="en" className="overflow-x-clip">
<html lang="en" className="overflow-hidden">
<head>
<meta charSet="UTF-8" />
<meta