mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
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:
parent
8970636575
commit
bc4175e79b
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user