mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-19 17:01:57 +03:00
b1c50bb8c2
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
13 lines
243 B
JavaScript
13 lines
243 B
JavaScript
const esbuild = require('esbuild');
|
|
const fs = require('fs');
|
|
|
|
fs.mkdirSync('bundle', { recursive: true });
|
|
|
|
esbuild.build({
|
|
entryPoints: ['src/index.ts'],
|
|
bundle: true,
|
|
minify: true,
|
|
platform: 'node',
|
|
outfile: 'bundle/bundle.js'
|
|
})
|