File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,18 @@ 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 : '/vue-element-admin/' , // If you are deployed on the root path, please use '/'
61
67
62
68
/**
63
69
* Source Maps
64
70
*/
65
-
66
71
productionSourceMap : false ,
67
72
// https://webpack.js.org/configuration/devtool/#production
68
73
devtool : '#source-map' ,
You can’t perform that action at this time.
0 commit comments