mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +03:00
b1c50bb8c2
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
15 lines
359 B
JavaScript
15 lines
359 B
JavaScript
const esbuild = require('esbuild')
|
|
const fs = require('fs');
|
|
|
|
fs.mkdirSync('bundle', { recursive: true });
|
|
|
|
void esbuild.build({
|
|
entryPoints: ['src/index.ts'],
|
|
bundle: true,
|
|
minify: true,
|
|
keepNames: true,
|
|
loader: { ".node": "file" },
|
|
platform: 'node',
|
|
outfile: 'bundle/bundle.js',
|
|
external: ['canvas', 'sharp', 'pdfjs-dist']
|
|
}) |