I'd like to use sbt-web to process my client-side assets. I have some source files that are going to be fed into sbt-web, and sbt-web is going to output some distribution files.
Is there a way to tell Play framework to exclude these source files (e.g. unminified javascript, etc) from the deployment build when building for production?
Sbt-filter is what you are looking for. You can follow description at the Github page but basically you have to enable the plugin in your
build.sbt
, add it to the pipeline and write filter configuration.For example to exclude a unminified javascripts you use: