Summary

This chapter explained how the build system can be leveraged to produce minified and concatenated web assets. These assets can then be safely cached by web browsers while giving you the comfort of writing the client-side code in a modular way and using higher-level languages to compile to JavaScript and CSS.

The assets processing pipeline that we set up in this chapter can be illustrated using the following diagram:

Summary

The compilation plugins, sbt-less and sbt-coffee, compile the a.less module (that depends on a b.less module) into a single a.css module and the modules, a.coffee and b.coffee, into the a.js and b.js modules, respectively. Then, ...

Get Play Framework Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.