0
我使用sbt-js 0.3構建Scalatra Web項目。我在build.sbt
中包含以下幾行。在戰爭中包含縮小的JavaScript文件
(webappResources in Compile) <+= (resourceManaged in Compile)
(resourceGenerators in Compile) <+= (JsKeys.js in Compile)
(compile in Compile) <<= compile in Compile dependsOn (JsKeys.js in Compile)
當我運行compile
縮小的文件確實會在target/scala_2.9.1
文件夾中生成。但是當我使用package
(來自xsbt-web-plugin)或assembly
(來自sbt-assembly)時,我無法在戰爭中獲得這些文件。有任何想法嗎?