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]*?)(?=\\[|$)"],