Exemple #1
0
    }).then(function (criticalCSS) {
        criticalCSS = combineCss(criticalCSS);

        if (opts.ignore) {
            debug('Applying filter', opts.ignore);
            criticalCSS = filterCss(criticalCSS, opts.ignore, opts.ignoreOptions || {});
        }

        if (opts.minify === true) {
            debug('Minify css');
            criticalCSS = new CleanCSS().minify(criticalCSS).styles;
        }

        debug('Done');
        return criticalCSS;
    });
Exemple #2
0
 return css => filters.length ?
         new CleanCSS().minify(filterCss(css, filters)).styles :
         css;