Do not compress the mimetype file
This is the last error (for Worm) noted via epubcheck, per #22.
This commit is contained in:
parent
c6f7460b82
commit
db1b3d9e97
1 changed files with 1 additions and 1 deletions
|
|
@ -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" });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue