fix: create ./src/_includes/css/ if necessary
This commit is contained in:
parent
d247352a90
commit
05372ba464
|
@ -29,6 +29,15 @@ module.exports = function (eleventyConfig) {
|
|||
});
|
||||
|
||||
eleventyConfig.on("eleventy.before", async () => {
|
||||
// mkdir ./src/_includes/css/ if necessary
|
||||
fs.mkdir("./src/_includes/css/", (err) => {
|
||||
if (err) {
|
||||
return console.error(err);
|
||||
}
|
||||
console.log("Directory created successfully!");
|
||||
});
|
||||
|
||||
// iterate over scss files
|
||||
let files = fs.readdirSync("./src/scss/");
|
||||
files.forEach((file) => {
|
||||
// Compile SASS
|
||||
|
|
Reference in a new issue