Localhost

Build Vue JS apps with relative paths

In case you use the default vue js build, you will end up having absolute paths for your JS and CSS assets (i.e. /js/somejsfiledependency.js). To change this behavior:

Add a vue.config.js at the root of your vue project and specify publicPath :

module.exports = {
    publicPath: ''
};