Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/sbt/depending.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,16 @@ skip in packageJSDependencies := false
{% endhighlight %}

in your project settings. The resulting file in the target folder will have the suffix `-jsdeps.js`.

### Minified versions of JS dependencies

The `minified` modifier to `jsDependencies` allows to specify minified alternatives of JS libraries.
Use it like this:

jsDependencies +=
"org.webjars" % "immutable" % "3.4.0" / "immutable.js" minified "immutable.min.js"

Minified dependencies are packaged with `packageMinifiedJSDependencies`, which is automatically called when `fullOptJS` is invoked.
The result is put in a file `-jsdeps.min.js` next to `-jsdeps.js`.

Obviously, for JS dependencies that do not specify a minified version, their non-minified version is used instead.