Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #83

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
["es2015", { "modules": false }]
]
}
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
# iView-project
### 推荐直接使用 iView-cli
[iView-cli](https://github.com/iview/iview-cli)
> 源自[https://github.com/icarusion/vue-vueRouter-webpack](https://github.com/icarusion/vue-vueRouter-webpack)

本工程适用于基于 Vue.js1.0 + vue-router + webpack + iView 的项目,已经将 iView 配置完成,只需要按步骤初始化即可。
This project is build for Vue.js 2 + vue-router + webpack2 + iView 3, just install and run.

## 安装
## Install
```bush
// 安装前请先确保已安装node和npm
// 需要提前在全局安装webpack和webpack-dev-server,如果已安装请忽略
npm install webpack -g
npm install webpack-dev-server -g

// 安装成功后,再安装依赖
// install dependencies
npm install
```
## 运行
### 开发环境
## Run
### Development
```bush
// 注意首次使用需要执行下面的init命令来生成入口html文件,以后不用再执行
// For the first time, run init to create index.html
npm run init
npm run dev
```
### 生产环境(打包)
### Production(Build)
```bush
npm run build
```
### 访问
在浏览器地址栏输入[http://127.0.0.1:8080](http://127.0.0.1:8080)

Loading