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
the WebJar artifactId
the full path to a file in the WebJar
the located WebJarAsset
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
the WebJar artifactId
the file or partial path to find
the located WebJarAsset
Locate a file in a WebJar
Locate a file in a WebJar
the file or partial path to find
the located WebJarAsset
Passing in jquery.min.js
will return a WebJarAsset,
assuming the jquery WebJar version 1.8.2 is on the classpath
Generates the RequireJS config and main script tags
Generates the RequireJS config and main script tags
The reverse route of the main app
The RequireJS config and main script tags
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