Skip to content

Commit 16bbf9c

Browse files
committed
Updated readme with proper implementation instruction
1 parent 858eeae commit 16bbf9c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# vsts-coverage-styles
1+
# Vsts coverage styles
22

3-
This package helps to convert the external css files linked in an HTML into an internal style i.e., by injecting in HTML using ```<style>``` tag in the document head.
3+
This package helps to convert the external css files linked in an HTML into an internal style i.e., by injecting in HTML using `<style>` tag in the document head.
44
It follows the same order while injecting CSS back in the HTML.
55

66
It doesn't do anything else, so it is as simple and fast as it can.
77

8-
install using ``` npm install vsts-coverage-styles --save ```
8+
install using `npm install vsts-coverage-styles --save `
99

1010
Following is how you can consume the package from the nodejs file.
1111

12-
The override css allows you to fix the glitches due to VSTS stripping :after & :before selectors, images & charsets
12+
The override css allows you to fix the glitches due to VSTS stripping pseudo selectors like :after & :before selectors, images & charsets
1313

1414
```
1515
/**
@@ -42,5 +42,8 @@ vstsCoverageStyles({
4242
postProcessFn: function(html) {
4343
return html;
4444
}
45-
});```
45+
});
46+
```
4647

48+
To know about the assumptions and the optimization done for this plugin, check out the following article
49+
[Code coverage HTML reports are missing styles in VSTS](https://davidsekar.com/aspnetcore/code-coverage-html-reports-are-missing-styles-in-vsts)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vsts-coverage-styles",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "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.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)