From a3a2bc457248d7b46af3261c0de5584903021089 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Fri, 20 Oct 2023 13:49:55 +0530 Subject: [PATCH] feat: inline all initial CSS in HTML --- index.html | 10 +++++++--- src/index.tsx | 1 - src/util/index.ts | 3 +-- tsconfig.json | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 6ade747..861e91d 100644 --- a/index.html +++ b/index.html @@ -17,15 +17,19 @@ - - MKRhere +
- + \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index 4e2caa2..0500a31 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,6 @@ import React from "react"; import { createRoot } from "react-dom/client"; -import "./index.css"; import useLocation from "wouter/use-location"; diff --git a/src/util/index.ts b/src/util/index.ts index d9abcce..fe8ce04 100644 --- a/src/util/index.ts +++ b/src/util/index.ts @@ -56,8 +56,7 @@ export const get = { }, }; -import "./dynamic-gradient.css"; - +// required css is inlined in index.html export function setupCursorTracking(el: HTMLElement | null) { if (!el) return; diff --git a/tsconfig.json b/tsconfig.json index 6bc6f95..55f4aa9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "skipLibCheck": false, "esModuleInterop": false, "allowSyntheticDefaultImports": true, + "allowImportingTsExtensions": true, "strict": true, "forceConsistentCasingInFileNames": true, "module": "ESNext",