Skip to content

Commit 7096bac

Browse files
zh-roccohaoqunjiang
authored andcommitted
fix(cli-service): fix path RegEx error (#2830)
1 parent 8bf7dfd commit 7096bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/build/setPublicPath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if (typeof window !== 'undefined') {
44
var i
5-
if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js$/))) {
5+
if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
66
__webpack_public_path__ = i[1] // eslint-disable-line
77
}
88
}

0 commit comments

Comments
 (0)