Explorar o código

element版本升级打包配置修改

sunlupeng %!s(int64=2) %!d(string=hai) anos
pai
achega
5a0358a4fe
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)