https://github.com/zhf1206/vue-pages-template
这是一个多页面vue项目开发框架
https://github.com/zhf1206/vue-pages-template
nodejs template vue webpack
Last synced: 3 months ago
JSON representation
这是一个多页面vue项目开发框架
- Host: GitHub
- URL: https://github.com/zhf1206/vue-pages-template
- Owner: zhf1206
- License: mit
- Created: 2018-06-12T09:40:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T09:57:37.000Z (about 8 years ago)
- Last Synced: 2025-08-02T07:00:03.526Z (11 months ago)
- Topics: nodejs, template, vue, webpack
- Language: JavaScript
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-pages-template
这是一个多页面vue项目开发框架
### 修改不同服务地址
#### 文件:config/index.js
```
if (process.env.NODE_ENV == 'development') {
api_server = "http://localhost:9000";
}
if (process.env.NODE_ENV == 'testing') {
api_server = "http://localhost:9000";
}
if (process.env.NODE_ENV == 'product') {
api_server = "http://localhost:9000";
}
```
### 安装依赖包
```
npm run install
```
### 运行项目(本地开发)
```
npm run dev
```
### 运行项目(本地测试)
```
npm run testing
```
### 访问项目
```
http:localhost:9000
```
### 服务器发布
```
npm run build
```
### 本地服务模拟启动
```
npm run server
```