From 6125170aa0d5b1d937397f5c6faa3164466da340 Mon Sep 17 00:00:00 2001 From: Vincent Primault Date: Sat, 31 Aug 2024 13:39:16 +0200 Subject: [PATCH] build: remove import of blueprint-icons.css (#104) Cf. https://github.com/palantir/blueprint/issues/6401 This import is not useful if not using the icon fonts, while adding significant size to the bundle. --- apps/webapp/src/main.scss | 3 +++ apps/webapp/src/main.tsx | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/webapp/src/main.scss b/apps/webapp/src/main.scss index f594d41..ad6fb57 100644 --- a/apps/webapp/src/main.scss +++ b/apps/webapp/src/main.scss @@ -1,3 +1,6 @@ +@import "normalize.css/normalize.css"; +@import "@blueprintjs/core/lib/css/blueprint.css"; +@import "@blueprintjs/select/lib/css/blueprint-select.css"; @import "@blueprintjs/core/lib/scss/variables"; *:focus { diff --git a/apps/webapp/src/main.tsx b/apps/webapp/src/main.tsx index ade1555..bad4bd8 100644 --- a/apps/webapp/src/main.tsx +++ b/apps/webapp/src/main.tsx @@ -11,11 +11,6 @@ import ErrorPage from "./error-page.tsx"; import Dashboard from "./routes/dashboard.tsx"; import Settings from "./routes/settings.tsx"; import Stars from "./routes/stars.tsx"; - -import "normalize.css/normalize.css"; -import "@blueprintjs/icons/lib/css/blueprint-icons.css"; -import "@blueprintjs/core/lib/css/blueprint.css"; -import "@blueprintjs/select/lib/css/blueprint-select.css"; import "./main.scss"; const router = createBrowserRouter([