Browse Source

chore: assetsPublicPath

Pan 7 years ago
parent
commit
fb32462266
1 changed files with 8 additions and 2 deletions
  1. 8 2
      config/index.js

+ 8 - 2
config/index.js

@@ -56,8 +56,14 @@ module.exports = {
56
     assetsRoot: path.resolve(__dirname, '../dist'),
56
     assetsRoot: path.resolve(__dirname, '../dist'),
57
     assetsSubDirectory: 'static',
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
      * Source Maps
69
      * Source Maps