Merge pull request #466 from sveltejs/css-basepath

no need to use basepath in <link>
This commit is contained in:
Rich Harris
2018-10-05 21:22:15 -04:00
committed by GitHub

View File

@@ -342,7 +342,7 @@ export function prepare_page(target: Target): Promise<{
}
function load_css(chunk: string) {
const href = `${initial_data.baseUrl}client/${chunk}`;
const href = `client/${chunk}`;
if (document.querySelector(`link[href="${href}"]`)) return;
return new Promise((fulfil, reject) => {