From 910ae2ba2eb4c0e0ebf8caacf87aa6d17c938dc0 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Tue, 23 Jan 2024 14:43:22 +0100 Subject: [PATCH] feat: add css --- deno.json | 2 +- server.tsx | 3 +++ style.css | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 style.css 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 +