WebJarsUtil

org.webjars.play.WebJarsUtil
@Singleton
class WebJarsUtil(configuration: Configuration, environment: Environment) extends Logging

WebJars Util

webjars.cdn-url overrides the default CDN url (https://cdn.jsdelivr.net/webjars)

webjars.use-cdn toggles the CDN

Attributes

Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

class WebJarAsset(val webjar: String, val fullPath: Try[String])

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def locate(webjar: String, path: String): WebJarAsset
def requireJs(mainUrl: Call): Html

Generates the RequireJS config and main script tags

Generates the RequireJS config and main script tags

Value parameters

mainUrl

The reverse route of the main app

Attributes

Returns

The RequireJS config and main script tags

Concrete fields

lazy val cdnUrl: String
lazy val useCdn: Boolean

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging