RevisionedFile
Describes a revisioned file, meaning its path is unique based on its content.
Revisioned files must be created by using one of the various extension functions on WriteableRevFileRegistry. create is the most general function to create a revisioned file, while source provides interop with kotlinx.io
.
Depending on your platform, convenient factories like resource or file are also available.
package com.example
object AppAssets : RevFileRegistry("/assets/") {
val main: RevisionedFile = resource("main.js")
val styles: RevisionedFile = resource("styles.css")
}
Content copied to clipboard