update readme

This commit is contained in:
liaosy 2020-03-02 22:56:27 +08:00
parent 3bd2d6de0b
commit aefa83aaaa
1 changed files with 13 additions and 3 deletions

View File

@ -2,10 +2,20 @@
INFINI Logging Center
确保已经安装好`nodejs`(版本大于等于 8.5.0)环境:
```sh
node -v
npm -v
```
在国内,你可以安装 `cnpm` 获得更快速、更安全的包管理体验。使用如下命令安装:
```sh
npm install -g cnpm --registry=https://registry.npm.taobao.org
```
## 启动开发模式
```sh
npm run dev
cnpm run dev
```
在浏览器中访问:[http://localhost:8000](http://localhost:8000)
@ -14,7 +24,7 @@ npm run dev
## 构建和部署
```sh
npm run build
cnpm run build
```
执行该命令后会生成最终的 HTML、CSS 和 JS 到 dist 目录下。它们是浏览器可以直接识别并运行的代码,这样你就可以将它们部署到你想要的服务器上了。
执行该命令后会生成最终的 HTML、CSS 和 JS 到 `dist` 目录下。它们是浏览器可以直接识别并运行的代码,这样你就可以将它们部署到你想要的服务器上了。