script
fun FlowOrMetaDataOrPhrasingContent.script(file: RevisionedFile, crossorigin: ScriptCrossorigin? = null, integrity: Boolean = RevFileHtml.useSubresourceIntegrity, module: Boolean = RevFileHtml.useJsModules, block: SCRIPT.() -> Unit = {})(source)
Adds a <script> tag for the given revisioned file.
Parameters
file
the revisioned file
crossorigin
value for the crossorigin attribute. Default is null.
integrity
whether the integrity attribute should be set. Default can be configured with useSubresourceIntegrity while installing the RevFilePlugin.
module
whether the type attribute should be set to module. Default can be configured with useJsModules while installing the RevFilePlugin.
block
optional block to further customize the <script> tag