Frontend dependency management
Dependencies are defined in project/Settings.scala as webjars
Dependencies are automatically minified in production and get fingerprinted to avoid browser-caching. During development they remain in a readable form.
Dependencies for the client-project (required by scala-js code) are defined in the section "jsDependencies" of Settings.scala. Additionally you need to define which files from the webjar are packed into the jsdeps-file. You list the files at the end of the webjar-artefact-string like this:
"org.webjars" % "FlexSlider" % versions.flexSlider / "jquery.flexslider.js" minified "jquery.flexslider-min.js",
Concatenation of css
CSS-Assets are handled the same way as in the play-cms project, see AssetHandling in play-cms
In order to use assets in your main.less file, you have to add it to the Sequence "jvmDependencies" in Settings.scala. This is necessary because the less-compiler runs as build-step of the play-project.