WebJarsUtil
WebJars Util
Config:
webjars.filter-expression can be used to declare a regex for the files that should be looked for when searching within WebJars. By default all files are searched for.
webjars.cdn-url overrides the default CDN url (https://cdn.jsdelivr.net/webjars)
webjars.use-cdn toggles the CDN
Attributes
- Graph
-
- Supertypes
-
trait Loggingclass Objecttrait Matchableclass Any
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Get the full path to a file in a WebJar without validating that the file actually exists
Get the full path to a file in a WebJar without validating that the file actually exists
Value parameters
- path
-
the full path to a file in the WebJar
- webjar
-
the WebJar artifactId
Attributes
- Returns
-
the located WebJarAsset
- Example
-
Calling fullPath("react", "react.js") will return a WebJarAsset because react.js exists at the root of the WebJar
Locate a file in a WebJar
Locate a file in a WebJar
Value parameters
- file
-
the file or partial path to find
Attributes
- Returns
-
the located WebJarAsset
- Example
-
Passing in
jquery.min.js
will return a WebJarAsset, assuming the jquery WebJar version 1.8.2 is on the classpath
Locate a file in a WebJar
Locate a file in a WebJar
Value parameters
- path
-
the file or partial path to find
- webJar
-
the WebJar artifactId
Attributes
- Returns
-
the located WebJarAsset
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
Inherited fields
Attributes
- Inherited from:
- Logging