fix: using gitkeep instead of creating the folder
This commit is contained in:
parent
05372ba464
commit
774edad346
|
@ -29,14 +29,6 @@ module.exports = function (eleventyConfig) {
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.on("eleventy.before", async () => {
|
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
|
// iterate over scss files
|
||||||
let files = fs.readdirSync("./src/scss/");
|
let files = fs.readdirSync("./src/scss/");
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
|
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -2,7 +2,7 @@ node_modules/
|
||||||
_site/
|
_site/
|
||||||
|
|
||||||
content/
|
content/
|
||||||
report/
|
|
||||||
src/_includes/css
|
src/_includes/css/*.css
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
|
|
0
src/_includes/css/.gitkeep
Normal file
0
src/_includes/css/.gitkeep
Normal file
Reference in a new issue