Browse Source

添加热更新

tangning 3 years ago
parent
commit
651d2508df
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vue.config.js

+ 2 - 1
vue.config.js

@@ -12,7 +12,8 @@ module.exports = {
   outputDir: 'dist',
   devServer: {
     inline: false,
-    hot: false,
+    hot: true,
+    open: true,
     liveReload: false,
     // 设置代理proxy
     proxy: {