aappddeevv / sbt-copy-scalajs-artifact   0.1.0


Copies the scalajs artifact to another location along with the map file.

Scala versions: 2.12
sbt plugins: 1.0


This sbt plugin copies scala.js artifacts to a new location.



Copy the scala.js artifacts, js source and map file, to a different directory. This plugin does not adjust the source map content in case the source map contains relative directory location in the sources member.

To use, add the following:

// plugins.sbt
resolvers += Resolver.bintrayIvyRepo("aappddeevv", "sbt-plugins")

addSbtPlugin("ttg" % "sbt-copy-scalajs-artifact" % "<latest version here>")

See the badge for the latest version.

Then in your build.sbt:

// build.sbt

lazy val subproject = project.in(file("subproject"))
	.enablePlugin(ScalaJSPlugin, CopyJSPlugi)
	.setting(copyTarget := baseDirectory / "someotherdir")

Works with scala.js 1+ but not 0.6.


MIT license.