Yes it is possible.
You must add requireJsShim to the requireJsShim file. Often, the value of requireJsShim matches the value of the requireJs property.
Once you do this, everything will be compiled into a single file!
There is an example project for Play 2.1.0: https://github.com/schleichardt/play-2.1-features/tree/stackoverflow-question-14704169 (this is not in the main, but in stackoverflow-question- 14704169)
play dist
(! means in JAR or ZIP)
And dist / play-2-1-features-1.0-SNAPSHOT.zip! play-2-1-features-1.0-SNAPSHOT / lib / play-2-1-features_2.10-1.0-SNAPSHOT.jar! public / javascripts-min / main.js contains all the JavaScript / CoffeeScript code.
Schleichardt
source share