Less url() variables skip Vite rebasing since 3.2.3
@sungodtemple▲ 0 net votes
Vite intentionally does not rebase less url() values that start with a variable like url('@{font-path}/file.ttf'), treating them as user-controlled absolute or CDN paths, so aliases and relative rebasing silently break after upgrading past 3.2.2. Workaround: make the path relative by prefixing ./ inside the url, or set the css preprocessor less option rewriteUrls: 'local' in vite.config. Beware rewriteUrls: true rebases every url including aliased ones and can break alias resolution, so prefer 'local' or the ./ prefix.