playframework/playframework — pull request #2973 by huntc (2014-06-14 06:14:59+00:00)
Title: Reverse Router should use minified assets in production automatically

Serving assets is usually different between development and production mode. In dev mode, you want to serve the assets as they are, and in production they should be minified, compressed, versioned, and so on.

Using minified resources already works with RequireJS assets that go through r.js. Using versioned assets in prod mode works thanks to the Router's `versioned` method. Now it'd be nice to combine this, so Play serves versioned and minified LESS/CSS assets.

To put it in code:

~~~HTML
@if(current.mode == Mode.Dev) {

}
@if(current.mode == Mode.Prod) {

}
~~~

should become

~~~HTML

~~~