From: self Date: Mon, 21 Aug 2023 17:39:33 +0000 (-0700) Subject: just remove sharp actually X-Git-Url: http://these/git/%22%7Burl%7D/static/%7B%7D/%7Bpost.url%7D?a=commitdiff_plain;h=f53b6066bad25140d02e2daad07d3462fa27becc;p=lemmy-ui.git just remove sharp actually --- diff --git a/package.json b/package.json index 6f05ca2..4bcd399 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,6 @@ "sass-loader": "^13.3.2", "serialize-javascript": "^6.0.1", "service-worker-webpack": "^1.0.0", - "sharp": "^0.32.4", "tippy.js": "^6.3.7", "toastify-js": "^1.12.0", "tributejs": "^5.1.3", diff --git a/src/server/utils/create-ssr-html.tsx b/src/server/utils/create-ssr-html.tsx index ca8e3b6..8c74d96 100644 --- a/src/server/utils/create-ssr-html.tsx +++ b/src/server/utils/create-ssr-html.tsx @@ -2,15 +2,13 @@ import { getStaticDir } from "@utils/env"; import { Helmet } from "inferno-helmet"; import { renderToString } from "inferno-server"; import serialize from "serialize-javascript"; -import sharp from "sharp"; -import { favIconPngUrl, favIconUrl } from "../../shared/config"; +import { favIconUrl } from "../../shared/config"; import { IsoDataOptionalSite } from "../../shared/interfaces"; import { buildThemeList } from "./build-themes-list"; -import { fetchIconPng } from "./fetch-icon-png"; const customHtmlHeader = process.env["LEMMY_UI_CUSTOM_HTML_HEADER"] || ""; -let appleTouchIcon: string | undefined = undefined; +const appleTouchIcon: string | undefined = undefined; export async function createSsrHtml( root: string, @@ -29,25 +27,6 @@ export async function createSsrHtml( `