Skip to content

Commit

Permalink
feat(build): fixed build (Promise.all)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin committed Oct 22, 2024
1 parent 5a4ff16 commit 0953c34
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions esbuild/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0953c34

Please sign in to comment.