lib/output/modifiers/inlineAssets.js: Add inlinePng() modifier

This commit is contained in:
Johan Preynat
2016-05-03 11:30:02 +02:00
parent 59b7100cf6
commit 7f435c56a0
+3 -1
View File
@@ -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, $));
};
}