Skip to content

fix: allow relative baseUrl #2168

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 13, 2018
Merged

fix: allow relative baseUrl #2168

merged 4 commits into from
Aug 13, 2018

Conversation

elevatebart
Copy link
Contributor

fix #2153

When normalizing "./foo/bar" baseurl option, the code was first removing the "./" to make it relative (foo/bar).
Then it was making sure that, if it was starting with neither a / nor a ., ensure it would start with a /, disallowing any relative baseUrl.

I think those two normalizations should be reversed to allow for ./foo/bar to become foo/bar/.

@yyx990803 yyx990803 merged commit d14d4e6 into vuejs:dev Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

One cannot have relative assets
2 participants