The baseUrl option cannot be empty
See original GitHub issueVersion
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.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How do I set the baseUrl for Angular HttpClient?
Use the new HttpClient Interceptor. Create a proper injectable that implements HttpInterceptor : import {Injectable} from '@angular/core'; ...
Read more >Can't add tracker - no base URL to select : r/prowlarr - Reddit
Hi, I am trying to add Dutch tracker Film Paleis to prowlarr. However there is a dropdown menu for the "base URL" the...
Read more >[ambari-2.7.3] Ambari writes Empty baseurl values
Problem Statement : when using a local repository, installation fails due to empty baseurls being written to the Ambari repository (even though local ......
Read more >Configuration Reference | Vue CLI
If you cannot make use of the index HTML generated by Vue CLI, you can disable filename hashing by setting this option to...
Read more >Configuration - Cypress Documentation
Any other configuration values are readonly and cannot be changed at run time. animationDistanceThreshold; baseUrl; blockHosts; defaultCommandTimeout; env note: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This will be possible in the next release.
Sorry to be a troll, but are the docs just made up then? I dont think I ever heard of premature documentation. https://cli.vuejs.org/config/#baseurl