Skip to content

The baseUrl option cannot be empty #900

Closed
@sjoerdvisscher

Description

@sjoerdvisscher

Version

3.0.0-alpha.13

Steps to reproduce

Make a vue.config.js with

module.exports = {
  baseUrl: ''
}

execute npm run build.

What is expected?

An index.html file is created with relative link, f.e. href=js/... etc.

What is actually happening?

I get an error that baseUrl cannot be empty.


A simple workaround is

module.exports = {
  configureWebpack: {
    output: {
      publicPath: '',
    },
  },
};

This is actually the default value for publicPath, so it is weird that baseUrl does not allow this value.

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