Commit 960a9b59b8d4b6d6e7325dd01cfbf9aab826e654

Authored by liuqimichale
1 parent 709536d5

http-server install

webintroduce/build/utils.js
... ... @@ -47,6 +47,7 @@ exports.cssLoaders = function (options) {
47 47 if (options.extract) {
48 48 return ExtractTextPlugin.extract({
49 49 use: loaders,
  50 + publicPath:'../../',
50 51 fallback: 'vue-style-loader'
51 52 })
52 53 } else {
... ...
webintroduce/config/index.js
... ... @@ -20,7 +20,7 @@ module.exports = {
20 20 notifyOnErrors: true,
21 21 poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22 22  
23   -
  23 +
24 24 /**
25 25 * Source Maps
26 26 */
... ... @@ -43,7 +43,7 @@ module.exports = {
43 43 // Paths
44 44 assetsRoot: path.resolve(__dirname, '../dist'),
45 45 assetsSubDirectory: 'static',
46   - assetsPublicPath: '/',
  46 + assetsPublicPath: './',
47 47  
48 48 /**
49 49 * Source Maps
... ...