Chapter 4. Integrating with Client-side Technologies
The previous chapter showed how to serve HTML pages, thus turning your application into a web application. Well, actually, modern web applications also make heavy use of client-side scripting and styling technologies. So, this chapter explains how to serve and process (linting, minification, and concatenation) static assets (images, scripts, and style sheets). It also shows how to manage client-side dependencies from the build system.
The following is the list of topics that will be covered in the chapter:
- Serving static files from your application
- Generating the application's URLs from the JavaScript code
- Linting, minifying, and gzipping CSS and JavaScript assets
- Running JavaScript tests from sbt
- Managing JavaScript dependencies