mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-20 07:11:40 +03:00
18 lines
335 B
JavaScript
18 lines
335 B
JavaScript
import { command } from 'execa'
|
|
|
|
import { LogHelper } from '@/helpers/log-helper'
|
|
|
|
/**
|
|
* Build web app
|
|
*/
|
|
export default () =>
|
|
new Promise(async (resolve) => {
|
|
await command('vite --config app/vite.config.js build', {
|
|
shell: true,
|
|
stdout: 'inherit'
|
|
})
|
|
|
|
LogHelper.success('Web app built')
|
|
resolve()
|
|
})
|