Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't use public path when determining the as value as it causes issues when parsing the path #11

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

Tofandel
Copy link

@Tofandel Tofandel commented Jul 11, 2020

Fixes vuejs/vue-cli#5672

Since the determineAsValue parses the href using new URL(href, 'https://example.com').pathname and the href passed to it contains the publicPath option of vue cli, if this option contains special characters (Mainly '?') the url will not be parsed correctly and it will always use the default as value ('script')

Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@haoqunjiang haoqunjiang merged commit 399c0dc into vuejs:master Jul 16, 2020
@haoqunjiang
Copy link
Member

Released as v1.1.2

@Tofandel Tofandel deleted the patch-1 branch July 24, 2020 09:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preload plugin is marking css preload as "script" instead of "style" when using special public path
2 participants