Skip to content

Commit

Permalink
[#1] Remove .gitkeep file from image list
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Oct 29, 2021
1 parent 4c7cd71 commit e7a2461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import fs from 'fs';

const production = !process.env.ROLLUP_WATCH;
const imageArray = fs.readdirSync("./public/images");
const imageList = imageArray.map((item, index) => ({ id: index, filename: item }));
const imageList = imageArray.map((item, index) => ({ id: index, filename: item })).filter(image => image.filename != '.gitkeep');

function serve() {
let server;
Expand Down

0 comments on commit e7a2461

Please sign in to comment.