]> git.codecow.com Git - nano-pow.git/commitdiff
Strip logs always, unless in dev env.
authorChris Duncan <chris@zoso.dev>
Sun, 15 Jun 2025 22:11:55 +0000 (15:11 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 15 Jun 2025 22:11:55 +0000 (15:11 -0700)
esbuild.mjs

index 6959b146426b06841ee3970879b23af6e0c90dd2..d9001325468642e4ee7e9fcc8a274c236c7c8ca1 100644 (file)
@@ -19,7 +19,7 @@ await build({
        legalComments: 'inline',
        outdir: 'dist',
        target: 'esnext',
-       dropLabels: process.env.NODE_ENV !== 'production' ? [] : ['LOG'],
+       dropLabels: process.env.NODE_ENV === 'development' ? [] : ['LOG'],
        plugins: [
                glsl({
                        minify: true,