Pan лет назад: 6
Родитель
Сommit
fb32462266
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      config/index.js

+ 8 - 2
config/index.js

@@ -56,8 +56,14 @@ module.exports = {
56 56
     assetsRoot: path.resolve(__dirname, '../dist'),
57 57
     assetsSubDirectory: 'static',
58 58
 
59
-    // you can set by youself according to actual condition
60
-    assetsPublicPath: './',
59
+    /**
60
+     * You can set by youself according to actual condition
61
+     * You will need to set this if you plan to deploy your site under a sub path,
62
+     * for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
63
+     * then assetsPublicPath should be set to "/bar/".
64
+     * In most cases please use '/' !!!
65
+     */
66
+    assetsPublicPath: '/vueAdmin-template/', // If you are deployed on the root path, please use '/'
61 67
 
62 68
     /**
63 69
      * Source Maps