title: Vue CLI deploy to a subfolder using relative paths
body: <p>Using Vue CLI, and Vue 2.</p>
  <p>Anyone knows how to build the project using relative paths, so I can place it in any subfolder in my server and it will work? (for example <a href="http://www.mysite.com/subfolder/" rel="nofollow noreferrer">www.mysite.com/subfolder/</a>)</p>
  <p>I've tried with</p>
  <pre><code>// vue.config.js
  module.exports = {
    publicPath: &quot;&quot;,
  };
  </code></pre>
  <p>And it builds the paths relative (ie, <code>js/app.js</code> instead of <code>/js/app.js</code>), but the app wont' load. Nothing shows on the page.</p>
  <p>Strangest thing is that all files are loaded correctly (I can check on network tab in Chrome devtools), no JS errors, etc. So the page is loading all the files but it seems like it's refusing to mount the app when using relative paths.</p>
  <p>I know that I can add the absolute path to the build process but that's not what I need. My client needs to be able to move the files freely from one subfolder to another and the app should work without the need to recompile</p>
  <p>PS: Also tried building the project with Vite and Vue 3, same problem.</p>
  <p>Thanks!</p>