One script tag
sbt-splice turns a Scala.js import specifier into pinned bytes and one script tag.
What the browser loads
spliceFull links, pins each specifier to bytes, then bundles and minifies that file. The browser loads one script.
import "preact"
<script src="full.js"></script>
Install
The coordinate is the last published release. A build whose version contains -ci, +, or SNAPSHOT still shows
that release.
addSbtPlugin("rocks.earlyeffect" % "sbt-splice" % "0.3.2")
The task
spliceFull is the val SplicePlugin.autoImport.spliceFull. It is not a method, so the cite is cite(SplicePlugin.autoImport.spliceFull). The panel is that key. The footer is the definition.
val spliceFull = taskKey[File](
"Link, then bundle and minify the linker's imports with pinned esbuild (production)."
)