在war中包含缩小的JavaScript文件
我正在使用sbt js 0.3构建一个Scalatra web项目。我在在war中包含缩小的JavaScript文件,javascript,scala,sbt,xsbt-web-plugin,Javascript,Scala,Sbt,Xsbt Web Plugin,我正在使用sbt js 0.3构建一个Scalatra web项目。我在build.sbt中包含了以下几行内容 (webappResources in Compile) <+= (resourceManaged in Compile) (resourceGenerators in Compile) <+= (JsKeys.js in Compile) (compile in Compile) <<= compile in Compile dependsOn (JsKe
build.sbt
中包含了以下几行内容
(webappResources in Compile) <+= (resourceManaged in Compile)
(resourceGenerators in Compile) <+= (JsKeys.js in Compile)
(compile in Compile) <<= compile in Compile dependsOn (JsKeys.js in Compile)
(编译中的webappResources)查看默认情况下似乎是从sourceDirectory/webapp复制并在target/webapp中组装所有内容
我认为您需要如图所示调整WAR(除了复制而不是删除),或者重新配置以将缩小的JS包含在webappResources设置中