From 57a6a2f41088ce8e4947d7cc9a681660cfa71e1c Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Thu, 4 Apr 2019 17:39:50 +0800 Subject: [PATCH] 地磁故障api --- build/utils.js | 1 + config/index.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- libgit2 0.21.4