forked from trunk-rs/trunk
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
45 lines (37 loc) · 1.21 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Trunk | target-path</title>
<link data-trunk rel="scss" href="src/index.scss"/>
<link data-trunk rel="css" href="src/app.css"/>
<link data-trunk data-no-minify rel="css" href="src/not_minified.css"/>
<base data-trunk-public-url/>
</head>
<body>
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="vanilla-example"/>
<link data-trunk rel="copy-dir" href="assets" data-target-path="static"/>
<link data-trunk rel="copy-file" href="more-assets/rustacean-flat-happy.svg" data-target-path="static"/>
<script data-trunk src="src/script.js"></script>
<script data-trunk src="src/script.mjs" type="module"></script>
<table>
<tr>
<th>Test</th>
<th>Outcome</th>
<th>Expected</th>
</tr>
<tr>
<td><code>copy-dir</code></td>
<td><img src="static/rustacean-flat-happy.png" width="128"/></td>
<td>Should see PNG image</td>
</tr>
<tr>
<td><code>copy-file</code></td>
<td><img src="static/rustacean-flat-happy.svg" width="128"/></td>
<td>Should see SVG image</td>
</tr>
</table>
</body>
<script>testFromJavaScript();</script>
</html>