Skip to content

Why use ensureSlash to force slash in front? #3338

Closed
@csvwolf

Description

@csvwolf

What problem does this feature solve?

We set publicPath in the vue.config.js. But it will add a slash in the front when there is no https?:. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions