Skip to content

Commit 7dbe3df

Browse files
committed
playground is working
1 parent a0ce329 commit 7dbe3df

File tree

5 files changed

+713
-7
lines changed

5 files changed

+713
-7
lines changed

app/root.res

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
%%raw(`
2-
import "../styles/main.css";
3-
import "../styles/_hljs.css";
4-
import "../styles/utils.css";
1+
@module("../styles/main.css?url")
2+
external mainCss: string = "default"
3+
4+
@module("../styles/_hljs.css?url")
5+
external hljsCss: string = "default"
6+
7+
@module("../styles/utils.css?url")
8+
external utilsCss: string = "default"
59

10+
%%raw(`
611
import hljs from 'highlight.js/lib/core';
712
import bash from 'highlight.js/lib/languages/bash';
813
import css from 'highlight.js/lib/languages/css';
@@ -31,8 +36,12 @@ let default = () => {
3136
let (isOverlayOpen, setOverlayOpen) = React.useState(_ => false)
3237
<html>
3338
<head>
39+
<link rel="stylesheet" href={mainCss} />
40+
3441
<Links />
3542
<Meta />
43+
<link rel="stylesheet" href={hljsCss} />
44+
<link rel="stylesheet" href={utilsCss} />
3645
<link rel="icon" href="/favicon.ico" />
3746
<meta charSet="UTF-8" />
3847
</head>

0 commit comments

Comments
 (0)