https://github.com/singcl/mhd-vue-mutipage
https://github.com/singcl/mhd-vue-mutipage
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/singcl/mhd-vue-mutipage
- Owner: singcl
- Created: 2018-03-11T16:47:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T17:10:36.000Z (over 8 years ago)
- Last Synced: 2025-01-03T13:19:28.372Z (over 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-cli多页面应用
> 因为[原作者](https://github.com/breezefeng/vue-cli-multipage)貌似不再更新这个多页面配置了,于是我自己来把这个更新了,后期要是vue-cli更新的话我也会同步更新的
## 项目迁移
[原来](https://github.com/JayZangwill/vue-cli-multipage)的这个项目不再维护,因为是fork来的,没有issues功能,不利于后期维护,所以对项目做了迁移。
## 前言
这是用vue-cli 2.9.3版本`vue init webpack`命令生成的的应用,在此基础上加了些东西变成了多页面的
## tip
1. 如果想新建页面的话需要在`src/module`里新建文件夹,且文件夹里必须包括一个.html文件,.js文件,.vue文件作为入口文件
2. `npm run dev`的时候提示打开localhost:8080,会发现一个404页面,这个时候在浏览器中的url追加上(以我目前的目录结构示例)`module/index`或者`module/other`
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080/module/index
npm run dev
# build for production with minification
npm run build
```