-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Why use ensureSlash to force slash in front? #3338
Comments
Uglyness is an expression of personal taste, so not really a criteria by which to judge this. Do you have any real, tangible, technical problem resulting from this? |
Edit: Just realize that OP is asking the leading slash not trailing slash... |
Sorry for my poor English. My idea is to make a switch to control for user who don't need the auto-added leading slash, since there is a special scene or maybe the scene is just common in many companies? |
fixes vuejs#3338 fixes vuejs#4184 Actually I don't know why the slash was added in the first place, seems extraneous to me.
What problem does this feature solve?
We set
publicPath
in thevue.config.js
. But it will add a slash in the front when there is nohttps?:
. In our usage, we will use a publishing tools to handle some STRING LIKE__CDN__
. In webpack we only need to set publicPath to__CDN__/
, but now we should set as./__CDN__/
.I don't think the cli should check and auto change personal publicPath settings.
What does the proposed API look like?
For compatibility, maybe add an option like
forceSlash
to switch the feature is better.The text was updated successfully, but these errors were encountered: