Commit 960a9b59b8d4b6d6e7325dd01cfbf9aab826e654
1 parent
709536d5
http-server install
Showing
2 changed files
with
3 additions
and
2 deletions
webintroduce/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 { |
webintroduce/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 |