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.

12345678910111213141516
  1. import chalk from 'chalk'
  2. import { runBuildConfig } from './build-config'
  3. import { runBuildCNAME } from './build-cname'
  4. export const runBuild = async () => {
  5. try {
  6. runBuildConfig()
  7. runBuildCNAME()
  8. console.log(`✨ ${chalk.cyan('build successfully!')}`)
  9. } catch (error) {
  10. console.log(chalk.red('vite build error:\n' + error))
  11. process.exit(1)
  12. }
  13. }
  14. runBuild()