public class Rjs extends AssetProcessor
require.js optimizer resolve and optimize require.js files.
assets {
fileset {
home: js/home.js
}
pipeline {
dev: [rjs]
dist: [rjs]
}
}
NOTE: The fileset have to define the main module (root/main entry point) and require.js will do all the work.
assets {
...
rjs {
optimize: none
...
}
}
| Constructor and Description |
|---|
Rjs() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(org.jooby.MediaType type) |
String |
process(String filename,
String source,
com.typesafe.config.Config conf) |
name, set, set, toStringexcludes, get, optionspublic boolean matches(org.jooby.MediaType type)
matches in class AssetProcessorCopyright © 2017. All rights reserved.