diff --git a/deno.json b/deno.json index 70fc625..9efe5e1 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "tasks": { - "serve": "deno run --allow-env --allow-read --allow-write --allow-net --watch=./client,./script.tsx ./server.tsx" + "serve": "deno run --allow-env --allow-read --allow-write --allow-net --watch=./client,./script.tsx,./style.css ./server.tsx" }, "fmt": { "singleQuote": true, diff --git a/server.tsx b/server.tsx index 62c9dca..9813c85 100644 --- a/server.tsx +++ b/server.tsx @@ -13,6 +13,8 @@ const script = await bundle('./script.tsx', { 'importMap': { imports: denoConfig.imports }, }) +const css = await Deno.readTextFile('./style.css') + /** * Page template */ @@ -22,6 +24,7 @@ function Template() { Démo +