Enable conditional minification based on NOWATCH environment variable

This commit is contained in:
Seth 2025-01-17 18:22:42 -05:00
parent b8362d2d30
commit 7a4b1a0558
No known key found for this signature in database
GPG key ID: 8B7A2C60CDF65CAC

View file

@ -15,7 +15,7 @@ const build = async () => {
experimentalCss: true, experimentalCss: true,
splitting: true, splitting: true,
sourcemap: "linked", sourcemap: "linked",
//minify: true, ...(process.env.NOWATCH === "1" ? {minify: true} : {})
}); });
const end = Date.now(); const end = Date.now();
await cleanOldFiles(built.outputs); await cleanOldFiles(built.outputs);