From a75952451bb376a4c5624e62c744930f91f4401b Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期二, 03 十一月 2020 18:15:07 +0800
Subject: [PATCH] 添加多页面ico配置

---
 vue.config.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index ee4c7aa..541395b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -12,8 +12,7 @@
     entry: path,
     template: 'public/index.html',
     title: chunk == 'desktop/index' ? 'SmartAI' : chunk,
-    chunks: [chunk_vendor, 'chunk-common', chunk],
-    faviconPath: "favicon.png"
+    chunks: [chunk_vendor, 'chunk-common', chunk]
   }
   if (chunk != 'index') {
     pages[chunk].filename = 'view/' + chunk + '.html'
@@ -61,6 +60,12 @@
   },
   productionSourceMap: false,
   filenameHashing: false,
+  pwa: {
+    iconPaths: {
+      favicon32: 'favicon.ico',
+      favicon16: 'favicon.ico'
+    }
+  },
   devServer: {
     proxy: {
       '/track': {

--
Gitblit v1.8.0