I would like to exclude a specific directory from the distribution build.
My public assets directory:
+ ckeditor
+ ckeditor-dev-4.7.0
+ images
+ javascripts
+ stylesheets
The current distribution build includes all of those assets. But I want to exclude the directory ckeditor-dev-4.7.0, because I only need it in my development environment and not in production.
I added the following lines to build.sbt:
mappings in Assets := {
val origMappings = (mappings in Assets).value
origMappings.filterNot { case (_, file) => file.contains("ckeditor-dev-4.7.0") }
}
This does exclude the directory from the distribution build, but it is also not available in my development runtime, like it does not even exist. Is it possible to scope this to the dist task?