mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-28 22:31:07 +00:00
add test for js.Build external source map comment
This commit is contained in:
parent
50d9bdff39
commit
a5b287caaa
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ TS2: {{ template "print" $ts2 }}
|
|||
}).Build()
|
||||
|
||||
b.AssertFileContent("public/js/myts.js", `//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJz`)
|
||||
b.AssertFileContent("public/js/myts2.js", `//# sourceMappingURL=myts2.js.map`)
|
||||
b.AssertFileContent("public/js/myts2.js.map", `"version": 3,`)
|
||||
b.AssertFileContent("public/index.html", `
|
||||
console.log("included");
|
||||
|
|
Loading…
Reference in a new issue