mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 13:14:54 +00:00
Merge pull request #466 from sveltejs/css-basepath
no need to use basepath in <link>
This commit is contained in:
@@ -342,7 +342,7 @@ export function prepare_page(target: Target): Promise<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function load_css(chunk: string) {
|
function load_css(chunk: string) {
|
||||||
const href = `${initial_data.baseUrl}client/${chunk}`;
|
const href = `client/${chunk}`;
|
||||||
if (document.querySelector(`link[href="${href}"]`)) return;
|
if (document.querySelector(`link[href="${href}"]`)) return;
|
||||||
|
|
||||||
return new Promise((fulfil, reject) => {
|
return new Promise((fulfil, reject) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user