dedsudiyu il y a 2 ans
Parent
commit
520e70a7a6
2 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. 1 1
      package.json
  2. 10 0
      vue.config.js

+ 1 - 1
package.json

@@ -86,7 +86,7 @@
     "eslint-plugin-vue": "7.2.0",
     "lint-staged": "10.5.3",
     "runjs": "4.4.2",
-    "sass": "1.32.0",
+    "sass": "1.39.0",
     "sass-loader": "10.1.0",
     "script-ext-html-webpack-plugin": "2.1.5",
     "svg-sprite-loader": "5.1.1",

+ 10 - 0
vue.config.js

@@ -42,6 +42,16 @@ module.exports = {
     },
     disableHostCheck: true
   },
+  //修改了sass版本从1.32.0 升级至1.39.0  以解决页面小图标偶发性乱码问题 以下css代码为同步增加
+  css: {
+    loaderOptions: {
+      sass: {
+        sassOptions: {
+          outputStyle: 'expanded'
+        }
+      }
+    }
+  },
   configureWebpack: {
     name: name,
     resolve: {