Skip to content

Commit 914a4ec

Browse files
committed
chore: assetsPublicPath
1 parent 739aef4 commit 914a4ec

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

config/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)