mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
only run qpdf for the main output.pdf file
was previously matching any pdf file, which caused it to run for embedded pdf figures produced during the mklatex run
This commit is contained in:
parent
7dfdad02f5
commit
56f1ffa067
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ module.exports = OutputFileOptimiser =
|
|||
optimiseFile: (src, dst, callback = (error) ->) ->
|
||||
# check output file (src) and see if we can optimise it, storing
|
||||
# the result in the build directory (dst)
|
||||
if src.match(/\.pdf$/)
|
||||
if src.match(/\/output\.pdf$/)
|
||||
OutputFileOptimiser.optimisePDF src, dst, callback
|
||||
else
|
||||
callback (null)
|
||||
|
|
Loading…
Reference in a new issue