diff --git a/build/utils.js b/build/utils.js index bc98c135..e534fb0f 100755 --- a/build/utils.js +++ b/build/utils.js @@ -47,8 +47,7 @@ exports.cssLoaders = function (options) { if (options.extract) { return ExtractTextPlugin.extract({ use: loaders, - fallback: 'vue-style-loader', - publicPath: '../../' + fallback: 'vue-style-loader' }) } else { return ['vue-style-loader'].concat(loaders) diff --git a/config/index.js b/config/index.js index de01a270..f067ac28 100755 --- a/config/index.js +++ b/config/index.js @@ -56,7 +56,7 @@ module.exports = { assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', // 请根据你的站点地址修改这里 - assetsPublicPath: './', + assetsPublicPath: '/', /** * Source Maps