aa
This commit is contained in:
parent
22e6366dc2
commit
6097bac9d5
27 changed files with 1831 additions and 109 deletions
15
scripts/build.mjs
Normal file
15
scripts/build.mjs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { build } from 'esbuild';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
||||
|
||||
await build({
|
||||
absWorkingDir: root,
|
||||
entryPoints: [resolve(root, 'src/game.js')],
|
||||
bundle: true,
|
||||
format: 'esm',
|
||||
target: 'es2020',
|
||||
minify: true,
|
||||
outfile: resolve(root, 'dist/game.js')
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue