Skip to content

vue.config.js's baseUrl not working! #2493

@hezhongfeng

Description

@hezhongfeng

Version

3.0.2

Reproduction link

https://github.com/vuejs/vue-cli/files/2373799/2.1.0.zip

Node and OS info

Node 811.1 /npm5.6.0 / Windows 10

Steps to reproduce

I just create vue.config.js and

module.exports = {
  baseUrl: './'
};

then I build , check the index.html

What is expected?

I want the relative path like <link href=./js/about.2b2e4615.js rel=prefetch>

What is actually happening?

<head>
  <meta charset=utf-8>
  <meta http-equiv=X-UA-Compatible content="IE=edge">
  <meta name=viewport content="width=device-width,initial-scale=1">
  <link rel=icon href=favicon.ico>
  <title>2.1.0</title>
  <link href=js/about.2b2e4615.js rel=prefetch>
  <link href=css/app.00caf2cc.css rel=preload as=style>
  <link href=js/app.a7581183.js rel=preload as=script>
  <link href=js/chunk-vendors.25414c9d.js rel=preload as=script>
  <link href=css/app.00caf2cc.css rel=stylesheet>
</head>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions