Skip to content

User option 'baseUrl' is forced with a leading slash even for absolute URL #1084

Closed
@guangyao-liu

Description

@guangyao-liu

Version

3.0.0-beta.6

Reproduction link

ensureSlash(resolved, 'baseUrl')

Steps to reproduce

  1. Setup the vue.config.js with following content:
module.exports = {
  baseUrl: 'https://cdn.example.com/assets/'
}
  1. Run npm run build
  2. Check the generated file at dist/index.html

What is expected?

<script type=text/javascript src=https://cdn.example.com/assets/js/app.8cd3ebbc.js></script>

What is actually happening?

<script type=text/javascript src=/https://cdn.example.com/assets/js/app.8cd3ebbc.js></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions