1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-22 08:11:34 +03:00
leon/scripts/app/build-app.js

18 lines
316 B
JavaScript

import { command } from 'execa'
import { LOG } from '@/helpers/log'
/**
* Build web app
*/
export default () =>
new Promise(async (resolve) => {
await command('vite --config app/vite.config.js build', {
shell: true,
stdout: 'inherit'
})
LOG.success('Web app built')
resolve()
})