|
@@ -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 = (argv.indexOf('--dev') < 0);
|
|
8
|
+const production = (pack.version.indexOf('-dev') < 0);
|
9
|
9
|
const minify = (argv.indexOf('--minify') >= 0);
|
10
|
10
|
const serve = (argv.indexOf('--serve') >= 0);
|
11
|
11
|
|
|
@@ -23,7 +23,6 @@ const options = {
|
23
|
23
|
globalName: 'AR',
|
24
|
24
|
define: {
|
25
|
25
|
__AR_VERSION__: JSON.stringify(pack.version),
|
26
|
|
- __AR_DEVELOPMENT_MODE__: String(!production),
|
27
|
26
|
__AR_WEBSITE__: JSON.stringify(pack.homepage),
|
28
|
27
|
},
|
29
|
28
|
legalComments: 'inline',
|