lib/output/modifiers/inlineAssets.js
function inlineAssets(rootFolder, currentFile) {
    return function($) {
        return Promise()

        // Resolving images and fetching external images should be
        // done before svg conversion
        .then(resolveImages.bind(null, currentFile, $))
        .then(fetchRemoteImages.bind(null, rootFolder, currentFile, $))

        .then(svgToImg.bind(null, rootFolder, currentFile, $))
        .then(svgToPng.bind(null, rootFolder, currentFile, $))
        .then(inlinePng.bind(null, rootFolder, currentFile, $));
    };
}
function inlineAssets(rootFolder, currentFile) {
    return function($) {
        return Promise()

        // Resolving images and fetching external images should be
        // done before svg conversion
        .then(resolveImages.bind(null, currentFile, $))
        .then(fetchRemoteImages.bind(null, rootFolder, currentFile, $))

        .then(svgToImg.bind(null, rootFolder, currentFile, $))
        .then(svgToPng.bind(null, rootFolder, currentFile, $))
        .then(inlinePng.bind(null, rootFolder, currentFile, $));
    };
}
function inlineAssets ( rootFolder , currentFile ) { return function ( $ ) { return Promise ( ) // Resolving images and fetching external images should be // done before svg conversion . then ( resolveImages . bind ( null , currentFile , $ ) ) . then ( fetchRemoteImages . bind ( null , rootFolder , currentFile , $ ) ) . then ( svgToImg . bind ( null , rootFolder , currentFile , $ ) ) . then ( svgToPng . bind ( null , rootFolder , currentFile , $ ) ) . then ( inlinePng . bind ( null , rootFolder , currentFile , $ ) ) ; } ; }
Inline all assets in a page

@param {String} rootFolder
Inline all assets in a page