Skip to content

Commit 4369697

Browse files
committed
Merge branch 'hotfix/cli'
2 parents fa33dd5 + 96957de commit 4369697

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vue.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ module.exports = {
1414
devServer: {
1515
publicPath: baseUrl // 和 baseUrl 保持一致
1616
},
17-
// webpack 设置
1817
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
1918
chainWebpack: config => {
19+
// 解决 cli3 热更新失效 https://github.com/vuejs/vue-cli/issues/1559
20+
config.resolve
21+
.symlinks(true)
2022
// markdown
2123
config.module
2224
.rule('md')

0 commit comments

Comments
 (0)