mirror of https://gitlab.com/Cynosphere/xmc.git
fix splitter
This commit is contained in:
parent
142bc94400
commit
9c66d3ab39
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue