Sfoglia il codice sorgente

Tweak

customisations
alemart 7 mesi fa
parent
commit
9d41c74c6e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      esbuild.mjs

+ 1
- 1
esbuild.mjs Vedi File

@@ -5,7 +5,7 @@ import { readFile } from 'fs/promises';
5 5
 const argv = process.argv.slice(2);
6 6
 const json = await readFile(new URL('./package.json', import.meta.url), { encoding: 'utf8' });
7 7
 const pack = JSON.parse(json);
8
-const production = (pack.version.indexOf('-dev') < 0);
8
+const production = !pack.version.endsWith('-dev');
9 9
 const minify = (argv.indexOf('--minify') >= 0);
10 10
 const serve = (argv.indexOf('--serve') >= 0);
11 11
 

Loading…
Annulla
Salva