Skip to content

Commit e80774b

Browse files
committed
include local copy of css
1 parent a8ab67b commit e80774b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/report/ScoverageHtmlWriter.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ class ScoverageHtmlWriter(sourceDirectories: Seq[File], outputDir: File, sourceE
2222

2323
def write(coverage: Coverage): Unit = {
2424
val indexFile = new File(outputDir.getAbsolutePath + "/index.html")
25+
val cssFile = new File(outputDir.getAbsolutePath + "/pure-min.css")
2526
val packageFile = new File(outputDir.getAbsolutePath + "/packages.html")
2627
val overviewFile = new File(outputDir.getAbsolutePath + "/overview.html")
2728

2829
val index = IOUtils.readStreamAsString(getClass.getResourceAsStream("/scoverage/index.html"))
30+
val css = IOUtils.readStreamAsString(getClass.getResourceAsStream("/scoverage/pure-min.css"))
2931
IOUtils.writeToFile(indexFile, index)
32+
IOUtils.writeToFile(cssFile, css)
3033
IOUtils.writeToFile(packageFile, packageList(coverage).toString())
3134
IOUtils.writeToFile(overviewFile, overview(coverage).toString())
3235

0 commit comments

Comments
 (0)