update remove-darkmode.js
This commit is contained in:
parent
caee77c940
commit
07606e8c0b
@ -3,18 +3,10 @@ const path = require("path");
|
|||||||
|
|
||||||
const rootDirs = ["assets/scss", "layouts"];
|
const rootDirs = ["assets/scss", "layouts"];
|
||||||
const configFiles = [
|
const configFiles = [
|
||||||
{
|
|
||||||
filePath: "tailwind.config.js",
|
|
||||||
patterns: ["darkmode:\\s*{[^}]*},", 'darkMode:\\s*"class",'],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
filePath: "exampleSite/tailwind.config.js",
|
filePath: "exampleSite/tailwind.config.js",
|
||||||
patterns: ["darkmode:\\s*{[^}]*},", 'darkMode:\\s*"class",'],
|
patterns: ["darkmode:\\s*{[^}]*},", 'darkMode:\\s*"class",'],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
filePath: "hugo.toml",
|
|
||||||
patterns: ["\\S*\\.darkmode[^\\]]*\\]\\n*([\\s\\S]*?)(?=\\[|$)"],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
filePath: "exampleSite/hugo.toml",
|
filePath: "exampleSite/hugo.toml",
|
||||||
patterns: ["\\S*\\.darkmode[^\\]]*\\]\\n*([\\s\\S]*?)(?=\\[|$)"],
|
patterns: ["\\S*\\.darkmode[^\\]]*\\]\\n*([\\s\\S]*?)(?=\\[|$)"],
|
||||||
|
Loading…
Reference in New Issue
Block a user