Make postcss.module mkdir recursive

This commit is contained in:
Spxg
2025-05-17 11:00:40 +08:00
parent e640710292
commit 8441f91549

View File

@@ -10,7 +10,7 @@ module.exports = {
var jsonPath = path.resolve(outputFileName + ".map");
var dir = path.dirname(jsonPath);
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
fs.mkdirSync(dir, { recursive: true });
}
fs.writeFileSync(jsonPath, JSON.stringify(json));
},