mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
changed to js
This commit is contained in:
1 parent
64689e4e3b
commit
907288455a
2 files changed
+9
-9
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import { BuildOptions, build } from 'esbuild';
|
||||
import { build } from 'esbuild';
|
||||
import { copyFile, mkdirSync, rmSync } from 'fs';
|
||||
import { argv } from 'process';
|
||||
|
||||
const isProd = argv === undefined || !argv.includes('--dev');
|
||||
const buildAll = argv === undefined || argv.includes('--build=all');
|
||||
const buildBot = argv?.includes('--build=bot') || buildAll;
|
||||
const buildServer = argv?.includes('--build=server') || buildAll;
|
||||
const isProd = !argv.includes('--dev');
|
||||
const buildAll = argv.includes('--build=all');
|
||||
const buildBot = argv.includes('--build=bot') || buildAll;
|
||||
const buildServer = argv.includes('--build=server') || buildAll;
|
||||
|
||||
if (isProd) {
|
||||
// only remove in production to ensure no time is wasted in dev
|
||||
@@ -23,7 +23,7 @@ if (isProd) {
|
||||
);
|
||||
}
|
||||
|
||||
const commonOptions: BuildOptions = {
|
||||
const commonOptions = {
|
||||
platform: 'node',
|
||||
loader: {
|
||||
'.node': 'copy',
|
||||
Reference in new issue
Block a user