Closed muuki88 closed 9 years ago
I fixed this by setting the CDNs to an empty map. I think I have to match for certain strings to another CDN if I want to use them.
set RjsKeys.webJarCdns := Map.empty
The files should have been available on the CDN. Maybe this is related to #1206. Did you get an error?
Only the one I posted in the issue description. I couldn't find the files in the CDN either. The resulting appBuild.js
didn't contain the dependencies (that caused the error in requirejs)
Could you tell what URLs were being used?
Sorry that it took me so long. I found the proper solution. The CDNs check for the artifact-name. So adding
RjsKeys.webJarCdns += ("org.webjars.bower" -> "//cdn.jsdelivr.net/webjars")
RjsKeys.webJarCdns += ("org.webjars.npm" -> "//cdn.jsdelivr.net/webjars")
to your build.sbt
helps sbt-rjs
to find the correct CDN jars ;)
I have two webjar dependencies
"org.webjars.bower" % "nvd3" % "1.8.1"
"org.webjars.bower" % "angular-nvd3" % "1.0.2"
that are not available via JsDeliver CDN. Causing the
rjs
stage to fail withor
is there a way to deactive CDN replacement for certain webjar dependencies?