Skip to content

Commit e7a2461

Browse files
committed
[#1] Remove .gitkeep file from image list
1 parent 4c7cd71 commit e7a2461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import fs from 'fs';
88

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

1313
function serve() {
1414
let server;

0 commit comments

Comments
 (0)