vsts-coverage-styles
Version:
This package helps to convert the external css files in an HTML to an internal style i.e., injected using style tag in the document head.
13 lines (11 loc) • 370 B
JavaScript
const vstsCoverageStyles = require('./index').VstsCoverageStyles;
vstsCoverageStyles({
coverageDir: './test',
extraCss: '.test{color:red;}',
preProcessFn: function (html) {
return html.replace(new RegExp('×', 'g'), 'x');
},
postProcessFn: function (html) {
return html.replace(new RegExp('×', 'g'), 'x');
}
});