Skip to content

Commit

Permalink
解决白屏问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JayZangwill committed Dec 22, 2018
1 parent 69e60ef commit 014f0f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -10,6 +10,8 @@

这是用 vue-cli 2.9.3 版本`vue init webpack`命令生成的的应用,在此基础上加了些东西变成了多页面的

如果想看vue-cli 3.x及以上的版本请移步[v3分支](https://github.com/JayZangwill/vue-multipage/tree/v3)

## tip

1. 如果想新建页面的话需要在`src/module`里新建文件夹,且文件夹里必须包括一个.html 文件,.js 文件,.vue 文件作为入口文件
Expand All @@ -30,6 +32,8 @@ npm run dev
npm run build
```

**重要:** 首页是localhost:8080/module/index.html 而不是localhost:8080

## 修改的地方

### webpack.base.conf.js
Expand Down Expand Up @@ -153,4 +157,4 @@ function getEntries(path) {

### 2018 7.27 更新build里的三个config.js

修改正则为/(module\/(?:.+[^.]),解决module重命名问题
修改正则为/(module\/(?:.+[^.]),解决module重命名问题

0 comments on commit 014f0f3

Please sign in to comment.