concept sbt - web in category scalatra

This is an excerpt from Manning's book Scalatra in Action.
The sbt-web plugin adds the notion of web assets and introduces an incremental build pipeline to an sbt build. Assets are resources that are served by a web server, such as JavaScript or CSS files. The asset pipeline produces assets from asset sources and asset resources. Sbt-web provides a common base on which assets-related plugins can be built. There’s a wealth of such plugins for different technologies (for example, Sass/Less, UglifyJS, and gzip).
You can integrate xsbt-web-plugin and sbt-web by telling xsbt-web-plugin that the public web application resources are found in src/main/public instead of src/main/webapp and that the servlet container should serve the application from target/web/stage. In addition, the test and jetty:start tasks each depend on the web-stage task. The next listing shows the build definition.