25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- // #!/usr/bin/env node
-
- import { runBuildConfig } from './buildConf';
- import colors from 'picocolors';
-
- 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(`✨ ${colors.cyan(`[${pkg.name}]`)}` + ' - build successfully!');
- } catch (error) {
- console.log(colors.red('vite build error:\n' + error));
- process.exit(1);
- }
- };
- runBuild();
|