How to use scala-js artifacts with sbt-web within a single project?

210 views Asked by At

I would like to use sbt-web and scala-js to create a webjar. So far I have added the artifactPaths of the scala-js artifacts to the mappings in Assets. This does work if I call fastOptJS and the files show up in the correct webjar location.

However, I would like to have the assets generated upon compile. The problem is, that I get circular dependencies whenever I add a task dependency on fastOptJS here. I can not add fastOptJS to resourceGenerators or sourceGenerators, neither can I add a dependency to compile because of the circular dependencies.

It is not an option to trigger fastOptJS from another project.

Is there a solution to this?

0

There are 0 answers