scala-js-website icon indicating copy to clipboard operation
scala-js-website copied to clipboard

Document the option to relativize source maps

Open sjrd opened this issue 9 years ago • 1 comments

See https://github.com/scala-js/scala-js/issues/993

sjrd avatar Sep 14 '14 17:09 sjrd

Probably useful snippet to include in the docs: build.sbt:

scalacOptions += {
  val local = baseDirectory.value.toURI
  val remote = s"https://raw.githubusercontent.com/<organization>/<repo>/${git.gitHeadCommit.value.get}/"
  s"-P:scalajs:mapSourceURI:$local->$remote"
}

plugins.sbt:

addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")

fdietze avatar Dec 03 '17 18:12 fdietze