fix(@vant/cli): missing dev server urls (#9667)

* fix(@vant/cli): missing dev server urls

* chore: update lock

* chore: update log
This commit is contained in:
neverland 2021-10-12 19:28:07 +08:00 committed by GitHub
parent 8970636575
commit bc4175e79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import chalk from 'chalk';
import { createServer, build } from 'vite';
import {
getViteConfigForSiteDev,
@ -40,5 +41,10 @@ export async function compileSite(production = false) {
} else {
const server = await createServer(getViteConfigForSiteDev());
await server.listen();
const { version } = require('vite/package.json');
const viteInfo = chalk.cyan(`vite v${version}`);
console.log(`\n ${viteInfo}` + chalk.green(` dev server running at:\n`));
server.printUrls();
}
}

View File

@ -7962,9 +7962,9 @@ vite-plugin-md@^0.11.1:
markdown-it "^12.2.0"
vite@^2.6.5:
version "2.6.5"
resolved "https://registry.npmmirror.com/vite/download/vite-2.6.5.tgz#c4d25972e2f7371e682da86828722ddf5126f3d1"
integrity sha1-xNJZcuL3Nx5oLahoKHIt31Em89E=
version "2.6.7"
resolved "https://registry.npmmirror.com/vite/download/vite-2.6.7.tgz#e15c1d8327950720b5d7c4ec3fb36a5a58ccf7cb"
integrity sha1-4VwdgyeVByC118TsP7NqWljM98s=
dependencies:
esbuild "^0.13.2"
postcss "^8.3.8"