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
Type members
Classlikes
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 Params
- path
the full path to a file in the WebJar
- webjar
the WebJar artifactId
- 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 Params
- file
the file or partial path to find
- 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 Params
- path
the file or partial path to find
- webJar
the WebJar artifactId
- Returns
the located WebJarAsset