Browse Source

fix:静态资源丢失

xuexiaobo 5 years ago
parent
commit
68fc462b5e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      build/utils.js

+ 2 - 1
build/utils.js

@@ -47,7 +47,8 @@ exports.cssLoaders = function (options) {
     if (options.extract) {
       return ExtractTextPlugin.extract({
         use: loaders,
-        fallback: 'vue-style-loader'
+        fallback: 'vue-style-loader',
+        publicPath: '../../'
       })
     } else {
       return ['vue-style-loader'].concat(loaders)