1
0

2 Commitit 803db909af ... 62aa3e1153

Tekijä SHA1 Viesti Päivämäärä
  张松 62aa3e1153 Merge branch 'master' of http://192.168.4.246:3000/zhangs/surveyMaker 5 vuotta sitten
  张松 fea8ced6b0 webpack配置 5 vuotta sitten
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      build/utils.js

+ 6 - 1
build/utils.js

@@ -28,7 +28,12 @@ exports.cssLoaders = function (options) {
     // Extract CSS when that option is specified
     // (which is the case during production build)
     if (options.extract) {
-      return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
+      return ExtractTextPlugin.extract({
+        use: sourceLoader,
+        fallback: 'vue-style-loader',
+        publicPath:'../../'
+      })
+      // return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
     } else {
       return ['vue-style-loader', sourceLoader].join('!')
     }