Do not compress the mimetype file

This is the last error (for Worm) noted via epubcheck, per #22.
This commit is contained in:
Domenic Denicola 2020-12-31 14:17:41 -05:00
commit db1b3d9e97

View file

@ -21,7 +21,7 @@ module.exports = (bookPath, contentPath, outPath) => {
archive.pipe(destStream);
// Order matters; mimetype must be first for a valid EPUB
archive.file(path.resolve(bookPath, "mimetype"), { name: "mimetype" });
archive.file(path.resolve(bookPath, "mimetype"), { name: "mimetype", store: true });
archive.directory(contentPath, "OEBPS", { name: "OEBPS" });
archive.directory(path.resolve(bookPath, "META-INF"), "META-INF", { name: "META-INF" });