diff --git a/esbuild/build.mjs b/esbuild/build.mjs index aa9db739..b33cf1fb 100755 --- a/esbuild/build.mjs +++ b/esbuild/build.mjs @@ -74,24 +74,26 @@ const common = { }), ]); - await build({ - ...common, - entryPoints: ['dist/css/yfm.css'], - outfile: 'dist/css/yfm.min.css', - minify: true, - }); - await build({ - ...common, - entryPoints: ['dist/css/base.css'], - outfile: 'dist/css/base.min.css', - minify: true, - }); - await build({ - ...common, - entryPoints: ['dist/css/_yfm-only.css'], - outfile: 'dist/css/_yfm-only.min.css', - minify: true, - }); + await Promise.all([ + build({ + ...common, + entryPoints: ['dist/css/yfm.css'], + outfile: 'dist/css/yfm.min.css', + minify: true, + }), + build({ + ...common, + entryPoints: ['dist/css/base.css'], + outfile: 'dist/css/base.min.css', + minify: true, + }), + build({ + ...common, + entryPoints: ['dist/css/_yfm-only.css'], + outfile: 'dist/css/_yfm-only.min.css', + minify: true, + }), + ]); })(); (async function buildJs() {