fix splitter

This commit is contained in:
Cynthia Foxwell 2022-10-18 21:11:05 -06:00
parent 142bc94400
commit 9c66d3ab39

View file

@ -6,8 +6,8 @@ const path = require("path");
/****/
const inputFile = process.argv[1];
const outputDir = process.argv[2];
const inputFile = process.argv[2];
const outputDir = process.argv[3];
if (!fs.existsSync(inputFile)) {
console.log("input does not exist");
@ -118,7 +118,7 @@ try {
contents
);
} else {
fs.writeFileSync(path.join(outputDir, name + ".css"), contents);
fs.writeFileSync(path.join(outputDir, filePath + ".css"), contents);
}
}
} catch (err) {