UNPKG

@vant/cli

Version:

Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.

10 lines (9 loc) 327 B
import fse from 'fs-extra'; import { setNodeEnv } from '../common/index.js'; import { compileSite } from '../compiler/compile-site.js'; import { SITE_DIST_DIR } from '../common/constant.js'; export async function buildSite() { setNodeEnv('production'); await fse.emptyDir(SITE_DIST_DIR); await compileSite(true); }