File tree 2 files changed +4
-4
lines changed
packages/@vue/cli-service/lib
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -339,15 +339,13 @@ module.exports = class Service {
339
339
}
340
340
}
341
341
342
- // if (typeof resolved.publicPath === 'undefined') {
343
- // resolved.publicPath = '/'
344
- // }
345
-
346
342
// normalize some options
347
343
ensureSlash ( resolved , 'publicPath' )
348
344
if ( typeof resolved . publicPath === 'string' ) {
349
345
resolved . publicPath = resolved . publicPath . replace ( / ^ \. \/ / , '' )
350
346
}
347
+ // for compatibility concern, in case some plugins still rely on `baseUrl` option
348
+ resolved . baseUrl = resolved . publicPath
351
349
removeSlash ( resolved , 'outputDir' )
352
350
353
351
// deprecation warning
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ function hasMultipleCores () {
71
71
exports . defaults = ( ) => ( {
72
72
// project deployment base
73
73
publicPath : '/' ,
74
+ // for compatibility concern. TODO: remove in v4.
75
+ baseUrl : '/' ,
74
76
75
77
// where to output built files
76
78
outputDir : 'dist' ,
You can’t perform that action at this time.
0 commit comments