wbh 3 vuotta sitten
vanhempi
commit
f2dcdde885
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      build/utils.js
  2. 1 1
      config/index.js

+ 1 - 0
build/utils.js

@@ -37,6 +37,7 @@ exports.cssLoaders = function (options) {
     if (options.extract) {
       return ExtractTextPlugin.extract({
         use: loaders,
+        publicPath: '../../',
         fallback: 'vue-style-loader'
       })
     } else {

+ 1 - 1
config/index.js

@@ -7,7 +7,7 @@ module.exports = {
     index: path.resolve(__dirname, '../dist/index.html'),
     assetsRoot: path.resolve(__dirname, '../dist'),
     assetsSubDirectory: 'static',
-    assetsPublicPath: '/',
+    assetsPublicPath: './',
     productionSourceMap: false,
     // Gzip off by default as many popular static hosts such as
     // Surge or Netlify already gzip all static assets for you.