Skip to content

Commit 9f2aa63

Browse files
authored
fix: don't append slash on publicPath: 'auto' (#6506)
1 parent 3ddc19f commit 9f2aa63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/@vue/cli-service/lib/util/resolveUserConfig.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ module.exports = function resolveUserConfig ({
6666
}
6767

6868
// normalize some options
69-
ensureSlash(resolved, 'publicPath')
69+
if (resolved.publicPath !== 'auto') {
70+
ensureSlash(resolved, 'publicPath')
71+
}
7072
if (typeof resolved.publicPath === 'string') {
7173
resolved.publicPath = resolved.publicPath.replace(/^\.\//, '')
7274
}

0 commit comments

Comments
 (0)