Skip to content

Commit 0bb2a57

Browse files
committed
update css
1 parent 5bc45d7 commit 0bb2a57

File tree

7 files changed

+1174
-260
lines changed

7 files changed

+1174
-260
lines changed

app/(private)/hindi/page.md

Lines changed: 22 additions & 61 deletions
Large diffs are not rendered by default.

app/(private)/morocco/page.md

Lines changed: 130 additions & 130 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"next-themes": "^0.4.6",
3838
"nextra": "^4.3.0",
3939
"papaparse": "^5.5.3",
40-
"postcss": "^8.5.6",
4140
"postcss-lightningcss": "^1.0.1",
4241
"react": "^19",
4342
"react-dom": "^19",
@@ -61,25 +60,27 @@
6160
"yaml": "^2.8.1"
6261
},
6362
"devDependencies": {
64-
"rimraf": "^6.0.1",
65-
"postcss-cli": "^11.0.1",
66-
"cssnano": "^7.1.0",
67-
"concurrently": "^9.2.0",
68-
"glob": "^11.0.3",
69-
"chokidar-cli": "^3.0.0",
7063
"@mdx-js/loader": "^3.1.0",
7164
"@netlify/plugin-nextjs": "^5.12.0",
7265
"@shikijs/rehype": "^3.9.2",
66+
"chokidar-cli": "^3.0.0",
67+
"concurrently": "^9.2.0",
68+
"cssnano": "^7.1.0",
7369
"daisyui": "^5.0.50",
7470
"eslint": "9.33.0",
7571
"eslint-config-next": "15.4.6",
72+
"glob": "^11.0.3",
73+
"postcss": "^8.5.6",
74+
"postcss-cli": "^11.0.1",
75+
"postcss-rename": "^0.8.0",
7676
"prettier": "^3.6.2",
7777
"prettier-plugin-tailwindcss": "^0.6.14",
78+
"rimraf": "^6.0.1",
7879
"shiki": "^3.9.2",
7980
"tailwindcss": "^4.1.11"
8081
},
8182
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610",
8283
"optionalDependencies": {
8384
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.11"
8485
}
85-
}
86+
}

postcss.config.mjs

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
1+
// /** @type {import('postcss-load-config').Config} */
2+
// const config = {
3+
// plugins: {
4+
// "@tailwindcss/postcss": {},
5+
// // "postcss-rename": {
6+
// // strategy: "minimal",
7+
// // by: "whole",
8+
// // except: ["mt-4", "p-2"], // Protect Tailwind classes
9+
// // outputMapCallback: (map) => console.log("Renamed classes:", map),
10+
// // },
11+
// },
12+
// }
13+
14+
// export default config
15+
116
/** @type {import('postcss-load-config').Config} */
17+
import { writeFileSync } from "fs" // Import Node.js fs module to write files
18+
219
const config = {
320
plugins: {
421
"@tailwindcss/postcss": {},
522
// "postcss-rename": {
6-
// strategy: "minimal",
7-
// by: "whole",
23+
// strategy: "minimal", // Rename classes to shortest possible names (e.g., .a, .b)
24+
// by: "part", // Rename part of class names (e.g., .tall-image -> .a)
825
// except: ["mt-4", "p-2"], // Protect Tailwind classes
9-
// outputMapCallback: (map) => console.log("Renamed classes:", map),
26+
// outputMapCallback: (map) => {
27+
// // Write the renaming map to class-map.json
28+
// writeFileSync("class-map.json", JSON.stringify(map, null, 2), "utf8")
29+
// console.log("Class map saved to class-map.json:", map)
30+
// },
1031
// },
1132
},
1233
}

0 commit comments

Comments
 (0)