mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-26 12:48:48 +08:00
66feb779a8
* fix(type): fix ant-design-vue -> * fix: fix build handler & misc
24 lines
545 B
TypeScript
24 lines
545 B
TypeScript
// #!/usr/bin/env node
|
|
|
|
import { runBuildConfig } from './buildConf';
|
|
import chalk from 'chalk';
|
|
|
|
import pkg from '../../package.json';
|
|
|
|
export const runBuild = async () => {
|
|
try {
|
|
const argvList = process.argv.splice(2);
|
|
|
|
// Generate configuration file
|
|
if (!argvList.includes('disabled-config')) {
|
|
runBuildConfig();
|
|
}
|
|
|
|
console.log(`✨ ${chalk.cyan(`[${pkg.name}]`)}` + ' - build successfully!');
|
|
} catch (error) {
|
|
console.log(chalk.red('vite build error:\n' + error));
|
|
process.exit(1);
|
|
}
|
|
};
|
|
runBuild();
|