Skip to content

Commit e28301c

Browse files
committed
Merge branch 'hotfix/cli'
Former-commit-id: 4a398c43a90dd4c09e753294b53f65af796261ba [formerly 4369697] Former-commit-id: b77ac79
2 parents ca189c6 + 5c090e4 commit e28301c

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)