diff --git a/build/utils.js b/build/utils.js index 76fbeff..d8e2ac3 100644 --- a/build/utils.js +++ b/build/utils.js @@ -47,6 +47,7 @@ exports.cssLoaders = function (options) { if (options.extract) { return ExtractTextPlugin.extract({ use: loaders, + publicPath:'../../', fallback: 'vue-style-loader' }) } else { diff --git a/config/index.js b/config/index.js index c5eded7..1bc1d21 100644 --- a/config/index.js +++ b/config/index.js @@ -20,7 +20,7 @@ module.exports = { notifyOnErrors: true, poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- - + /** * Source Maps */ @@ -43,7 +43,7 @@ module.exports = { // Paths assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', - assetsPublicPath: '/', + assetsPublicPath: './', /** * Source Maps