§Using Google Closure Compiler
app/assets will be parsed by Google Closure compiler, checked for errors and dependencies and minified if activated in the build configuration.
compile command, as well as automatically when modified. Error are shown in the browser just like any other compilation error.
A minified file is also generated, where
.js is replaced by
.min.js. In our example, it would be
test.min.js. If you want to use the minified file instead of the regular file, you need to change the script source attribute in your HTML.
project/Build.scala by overriding the
For example, to compile only
.js file from the
The default definition is:
Next: Using require.js to manage dependencies
Found an error in this documentation? The source code for this page can be found here. After reading the documentation guidelines, please feel free to contribute a pull request.