From 07606e8c0bf1af5bec6b97582a5bbdf0dc7a27f3 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Wed, 5 Jul 2023 16:29:32 +0600 Subject: [PATCH] update remove-darkmode.js --- scripts/removeDarkmode.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/removeDarkmode.js b/scripts/removeDarkmode.js index 8811311..ac22979 100644 --- a/scripts/removeDarkmode.js +++ b/scripts/removeDarkmode.js @@ -3,18 +3,10 @@ const path = require("path"); const rootDirs = ["assets/scss", "layouts"]; const configFiles = [ - { - filePath: "tailwind.config.js", - patterns: ["darkmode:\\s*{[^}]*},", 'darkMode:\\s*"class",'], - }, { filePath: "exampleSite/tailwind.config.js", patterns: ["darkmode:\\s*{[^}]*},", 'darkMode:\\s*"class",'], }, - { - filePath: "hugo.toml", - patterns: ["\\S*\\.darkmode[^\\]]*\\]\\n*([\\s\\S]*?)(?=\\[|$)"], - }, { filePath: "exampleSite/hugo.toml", patterns: ["\\S*\\.darkmode[^\\]]*\\]\\n*([\\s\\S]*?)(?=\\[|$)"],