Skip to content

Commit 0174740

Browse files
authored
Add bytes import and image bundling deno compile videos to example (#1889)
1 parent 30fa4c7 commit 0174740

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

examples/_data.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,18 @@ export const sidebar = [
536536
href: "/examples/importing_json/",
537537
type: "example",
538538
},
539+
{
540+
title: "Byte and text imports",
541+
href: "/examples/byte_and_text_imports/",
542+
externalURL: "https://www.youtube.com/watch?v=PAEI6mdlXwc",
543+
type: "video",
544+
},
545+
{
546+
title: "Image bundling with deno compile",
547+
href: "/examples/image_bundling_deno_compile/",
548+
externalURL: "https://www.youtube.com/watch?v=qg_M0deBlfQ",
549+
type: "video",
550+
},
539551
{
540552
title: "Parsing and serializing CSV",
541553
href: "/examples/parsing_serializing_csv/",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: "Byte and text imports"
3+
url: /examples/byte_and_text_imports/
4+
videoUrl: https://www.youtube.com/watch?v=PAEI6mdlXwc
5+
layout: video.tsx
6+
---
7+
8+
## Video description
9+
10+
David from the Deno team shows you how to import bytes and text files, allowing
11+
you to include them in your module graph for automatic tree shaking and more.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Image bundling with deno compile"
3+
url: /examples/image_bundling_deno_compile/
4+
videoUrl: https://www.youtube.com/watch?v=qg_M0deBlfQ
5+
layout: video.tsx
6+
---
7+
8+
## Video description
9+
10+
Divy from the Deno team shows you how to embed image assets with `deno compile`
11+
in [his Flappybird game](https://github.com/littledivy/flappybird) with the
12+
bytes import.

0 commit comments

Comments
 (0)