Skip to content

Commit 8256b22

Browse files
committed
fix fakecss full path generation
1 parent ffd7fd6 commit 8256b22

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,11 @@ function layoutFor( path, content = {} ) {
260260
let html = content.html || '';
261261
const innerCss = (content.css || {}).code || '';
262262

263-
return parse5.serialize( tree ).replace( cssKEY, css + innerCss ).replace( jsKEY, js ).replace( appKEY, html );
263+
return parse5.serialize( tree ).
264+
replace( cssKEY, css + innerCss ).
265+
replace( jsKEY, js ).
266+
replace( appKEY, html ).
267+
replaceAll("fakecss:"+__dirname,'fakecss:.');
264268
});
265269
}
266270

page1/subpage3/index.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{/each}
3434
</tbody>
3535
</table>
36-
<Button></Button>
36+
<Button>test</Button>
3737
</div>
3838

3939
<style>

0 commit comments

Comments
 (0)