You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
457 B
20 lines
457 B
const path = require('path')
|
|
const esbuild = require('esbuild')
|
|
|
|
const clientFiles = [
|
|
'common-client-plugin.js'
|
|
]
|
|
|
|
const configs = clientFiles.map(f => ({
|
|
entryPoints: [ path.resolve(__dirname, '..', 'client', f) ],
|
|
bundle: true,
|
|
minify: true,
|
|
format: 'esm',
|
|
target: 'safari11',
|
|
outfile: path.resolve(__dirname, '..', 'dist', f),
|
|
}))
|
|
|
|
const promises = configs.map(c => esbuild.build(c))
|
|
|
|
Promise.all(promises)
|
|
.catch(() => process.exit(1))
|
|
|