Tag: sbt web

在ScalaJs sbt构build中,使用webjars而不是npm或者bower与'Provided'有什么优势?

当我几个月前第一次发现webjars时,我非常怀疑,考虑到这些构build/构build系统的巨大复杂性,考虑到发布js文件的频率,这将成为处理客户端依赖的一种可行方式。 第二个问题当然是没有根据的,但是我花了将近36小时徒劳地试图获得大约10个scss/css/lesstypes的webjars和8个JS webjars,在一个jsDependencies屋顶下生活。 当你到达JS依赖关系3,4或者5时,我发现,你开始进入一个荒谬的时间循环: 1.“哦,没有!fastOptJS失败,因为有一些随机文件也被命名为相同的在webjar! [trace] Stack trace suppressed: run last client/compile:resolvedJSDependencies for the full output. [error] (client/compile:resolvedJSDependencies) org.scalajs.core.tools.jsdep.JSLibResolveException: Some references to JS libraries could not be resolved: [error] – Ambiguous reference to a JS library: bootstrap.min.js [error] Possible paths found on the classpath: [error] – META-INF/resources/webjars/bootstrap/3.3.6/js/bootstrap.min.js [error] – META-INF/resources/webjars/bootstrap3-dialog/1.34.4/examples/assets/bootstrap/js/bootstrap.min.js [error] originating from: client:compile, client:compile, […]