initial commit
This commit is contained in:
13
config/esbuild.prod.ts
Normal file
13
config/esbuild.prod.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import esbuild from 'esbuild';
|
||||
|
||||
import common from './esbuild.common';
|
||||
|
||||
(async () => {
|
||||
const ctx = await esbuild.context(common);
|
||||
if (process.argv.includes('--watch')) {
|
||||
await ctx.watch();
|
||||
} else {
|
||||
await ctx.rebuild();
|
||||
process.exit();
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user