From 7f435c56a01f815efc7f89da9eecae372c914f91 Mon Sep 17 00:00:00 2001 From: Johan Preynat Date: Tue, 3 May 2016 11:30:02 +0200 Subject: [PATCH] lib/output/modifiers/inlineAssets.js: Add inlinePng() modifier --- lib/output/modifiers/inlineAssets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/output/modifiers/inlineAssets.js b/lib/output/modifiers/inlineAssets.js index ee932eb58..7cd874b54 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, $)); }; }