diff options
author | Johan Preynat <johan.preynat@gmail.com> | 2016-05-03 11:30:02 +0200 |
---|---|---|
committer | Johan Preynat <johan.preynat@gmail.com> | 2016-05-03 11:30:02 +0200 |
commit | 7f435c56a01f815efc7f89da9eecae372c914f91 (patch) | |
tree | 9c5e9323bb293367131d406dffc65dfc2ee15d48 /lib | |
parent | 59b7100cf6a363a3b9c7e317ab2810f7b1ee2af2 (diff) | |
download | gitbook-7f435c56a01f815efc7f89da9eecae372c914f91.zip gitbook-7f435c56a01f815efc7f89da9eecae372c914f91.tar.gz gitbook-7f435c56a01f815efc7f89da9eecae372c914f91.tar.bz2 |
lib/output/modifiers/inlineAssets.js: Add inlinePng() modifier
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output/modifiers/inlineAssets.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/output/modifiers/inlineAssets.js b/lib/output/modifiers/inlineAssets.js index ee932eb..7cd874b 100644 --- a/lib/output/modifiers/inlineAssets.js +++ b/lib/output/modifiers/inlineAssets.js @@ -1,5 +1,6 @@ var svgToImg = require('./svgToImg'); var svgToPng = require('./svgToPng'); +var inlinePng = require('./inlinePng'); var resolveImages = require('./resolveImages'); var fetchRemoteImages = require('./fetchRemoteImages'); @@ -20,7 +21,8 @@ function inlineAssets(rootFolder, currentFile) { .then(fetchRemoteImages.bind(null, rootFolder, currentFile, $)) .then(svgToImg.bind(null, rootFolder, currentFile, $)) - .then(svgToPng.bind(null, rootFolder, currentFile, $)); + .then(svgToPng.bind(null, rootFolder, currentFile, $)) + .then(inlinePng.bind(null, rootFolder, currentFile, $)); }; } |