mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-11 18:56:06 +09:00
update remove-darkmode.js
This commit is contained in:
@@ -1,13 +1,7 @@
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const rootDirs = [
|
const rootDirs = ["src/pages", "src/hooks", "src/layouts", "src/styles"];
|
||||||
"src/pages",
|
|
||||||
"src/lib",
|
|
||||||
"src/hooks",
|
|
||||||
"src/layouts",
|
|
||||||
"src/styles",
|
|
||||||
];
|
|
||||||
|
|
||||||
const configFiles = [
|
const configFiles = [
|
||||||
{
|
{
|
||||||
@@ -32,7 +26,6 @@ function removeDarkModeFromFiles(filePath, regexPatterns) {
|
|||||||
|
|
||||||
function removeDarkModeFromPages(directoryPath) {
|
function removeDarkModeFromPages(directoryPath) {
|
||||||
const files = fs.readdirSync(directoryPath);
|
const files = fs.readdirSync(directoryPath);
|
||||||
console.log(files);
|
|
||||||
|
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
const filePath = path.join(directoryPath, file);
|
const filePath = path.join(directoryPath, file);
|
||||||
|
|||||||
Reference in New Issue
Block a user