Skip to content

Commit 0ea0a79

Browse files
committed
Update esbuild.ts
1 parent 4573896 commit 0ea0a79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/esbuild.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference lib="deno.ns" />
22
import * as esbuild from '@esbuild';
33
import { denoPlugin as esbuildPluginDeno } from "@deno/esbuild-plugin";
4-
import { green } from '@std/fmt/colors';
4+
import { bold, green, magenta } from '@std/fmt/colors';
55
import { parseArgs } from '@std/cli/parse-args';
66

77
const args = parseArgs<{
@@ -39,7 +39,7 @@ const copyConfig : esbuild.BuildOptions = {
3939
'./src/client/**/index.css',
4040
'./src/client/**/assets/*',
4141
'./src/client/static/**/*'
42-
]
42+
],
4343
}
4444

4545
const filesConfig : esbuild.BuildOptions = {
@@ -73,7 +73,7 @@ const filesConfig : esbuild.BuildOptions = {
7373
]
7474
}
7575

76-
console.log('Build process started.');
76+
console.log(bold(`Build process started. Building and bundling for ${magenta(args.develop ? '[Development]' : '[Production]')}.`));
7777

7878
const timestampNow = Date.now();
7979

@@ -83,7 +83,7 @@ if (args.watch) {
8383
} else {
8484
Promise.all([
8585
esbuild.build(copyConfig),
86-
esbuild.build(filesConfig),
86+
esbuild.build(filesConfig)
8787
]).then(() => {
8888
esbuild.stop();
8989
console.log(green(`esbuild ${esbuild.version} finished build in ${(Date.now() - timestampNow).toString()}ms.`));

0 commit comments

Comments
 (0)