Skip to content
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

app.js location in index.html hardcoded to / - ignores baseUrl from vue.config.js #1406

Closed
sp00x opened this issue May 30, 2018 · 3 comments
Closed

Comments

@sp00x
Copy link

sp00x commented May 30, 2018

Version

3.0.0-beta.14 (and probably .11, and .12)

Steps to reproduce

Adding a vue.config.js file with baseUrl: '.' or any other value than /

What is expected?

In index.html:
<link as="script" href="{baseUrl value here?}/app.js" rel="preload">

What is actually happening?

In index.html:
<link as="script" href="/app.js" rel="preload">


Worked fine in beta 10

@sp00x
Copy link
Author

sp00x commented May 30, 2018

Edit: not sure sure it worked fine in beta 10 after all. Either way, I guess this shouldn't be /app.js anyway.

@jkzing
Copy link
Member

jkzing commented May 30, 2018

baseUrl is not expected to be used in development mode. There is a new option added recently called devBaseUrl, see https://github.com/vuejs/vue-cli/blob/dev/docs/config.md.

It's a little buggy at the moment, maybe you could take a look at #1405 .

@yyx990803
Copy link
Member

Closed via #1405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants