fix splitter

This commit is contained in:
Cynthia Foxwell 2022-10-18 21:11:05 -06:00
parent 142bc94400
commit 9c66d3ab39
1 changed files with 3 additions and 3 deletions

View File

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