Commit 57a6a2f41088ce8e4947d7cc9a681660cfa71e1c
1 parent
a18ba600
地磁故障api
Showing
2 changed files
with
3 additions
and
2 deletions
build/utils.js
@@ -47,6 +47,7 @@ exports.cssLoaders = function (options) { | @@ -47,6 +47,7 @@ exports.cssLoaders = function (options) { | ||
47 | if (options.extract) { | 47 | if (options.extract) { |
48 | return ExtractTextPlugin.extract({ | 48 | return ExtractTextPlugin.extract({ |
49 | use: loaders, | 49 | use: loaders, |
50 | + publicPath:'../../', | ||
50 | fallback: 'vue-style-loader' | 51 | fallback: 'vue-style-loader' |
51 | }) | 52 | }) |
52 | } else { | 53 | } else { |
config/index.js
@@ -20,7 +20,7 @@ module.exports = { | @@ -20,7 +20,7 @@ module.exports = { | ||
20 | notifyOnErrors: true, | 20 | notifyOnErrors: true, |
21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- | 21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- |
22 | 22 | ||
23 | - | 23 | + |
24 | /** | 24 | /** |
25 | * Source Maps | 25 | * Source Maps |
26 | */ | 26 | */ |
@@ -43,7 +43,7 @@ module.exports = { | @@ -43,7 +43,7 @@ module.exports = { | ||
43 | // Paths | 43 | // Paths |
44 | assetsRoot: path.resolve(__dirname, '../dist'), | 44 | assetsRoot: path.resolve(__dirname, '../dist'), |
45 | assetsSubDirectory: 'static', | 45 | assetsSubDirectory: 'static', |
46 | - assetsPublicPath: '/', | 46 | + assetsPublicPath: './', |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Source Maps | 49 | * Source Maps |