Yaca Install
This commit is contained in:
parent
b622af6e3b
commit
cc47e529cc
68 changed files with 11192 additions and 0 deletions
25
resources/[voice]/yaca-voice/apps/yaca-client/build.js
Normal file
25
resources/[voice]/yaca-voice/apps/yaca-client/build.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { build } from 'esbuild'
|
||||
|
||||
const production = process.argv.includes('--mode=production')
|
||||
|
||||
build({
|
||||
entryPoints: ['src/index.ts'],
|
||||
outfile: './dist/client.js',
|
||||
bundle: true,
|
||||
loader: {
|
||||
'.ts': 'ts',
|
||||
'.js': 'js',
|
||||
},
|
||||
write: true,
|
||||
platform: 'browser',
|
||||
target: 'es2021',
|
||||
format: 'iife',
|
||||
minify: production,
|
||||
sourcemap: production ? false : 'inline',
|
||||
dropLabels: production ? ['DEV'] : undefined,
|
||||
})
|
||||
.then(() => {
|
||||
console.log('Client built successfully')
|
||||
})
|
||||
// skipcq: JS-0263
|
||||
.catch(() => process.exit(1))
|
Loading…
Add table
Add a link
Reference in a new issue