From 3f2d1101b3f55e14f6d871ed6f603a7614b32d38 Mon Sep 17 00:00:00 2001 From: arctic_hen7 Date: Sat, 18 Dec 2021 12:42:03 +1100 Subject: [PATCH] fix: disabled hydration on website There are still some issues with hydration that have yet to be fixed. --- website/Cargo.toml | 3 ++- website/tailwind.config.js | 17 +++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/website/Cargo.toml b/website/Cargo.toml index b5f8f7db7c..17c3b5a981 100644 --- a/website/Cargo.toml +++ b/website/Cargo.toml @@ -13,7 +13,8 @@ readme = "./README.md" [dependencies] # We use the current version of Perseus, not the local one -perseus = { version = "0.3.0-beta.22", features = [ "translator-fluent" ] } +# Hydration is temporarily disabled pending some fixes in Sycamore +perseus = { version = "0.3.0-beta.22", features = [ "translator-fluent" ], no-default-features = true } sycamore = "0.7" sycamore-router = "0.7" serde = "1" diff --git a/website/tailwind.config.js b/website/tailwind.config.js index 0c791a9cc6..d23140632c 100644 --- a/website/tailwind.config.js +++ b/website/tailwind.config.js @@ -2,16 +2,13 @@ const defaultTheme = require("tailwindcss/defaultTheme"); const colors = require("tailwindcss/colors"); module.exports = { - purge: { - mode: "all", - content: [ - "./src/**/*.rs", - "./index.html", - "./src/**/*.html", - "./src/**/*.css", - "./static/**/*.css", - ], - }, + content: [ + "./src/**/*.rs", + "./index.html", + "./src/**/*.html", + "./src/**/*.css", + "./static/**/*.css", + ], darkMode: process.env.NODE_ENV == "production" ? "media" : "class", theme: { fontFamily: {