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 = {
5656 assetsRoot : path . resolve ( __dirname , '../dist' ) ,
5757 assetsSubDirectory : 'static' ,
5858
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 '/'
6167
6268 /**
6369 * Source Maps
6470 */
65-
6671 productionSourceMap : false ,
6772 // https://webpack.js.org/configuration/devtool/#production
6873 devtool : '#source-map' ,
You can’t perform that action at this time.
0 commit comments