Fixing Relative Asset Paths and CSS Background URLs After Vue Build

When a Vue CLI 2 project is bundled, the default configuration assumes the generated dist folder will be served from the web root. If the app is deployed to a sub-folder, all relative links break. Two separate fixes are required: one for JavaScript-imported assets and another for CSS url() references. 1. Adjust the base public path Open config/ ...

Posted on Sat, 09 May 2026 00:50:36 +0000 by miniu