-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to load modules from Maven webjars? #23
Comments
I've been playing around with it, and here is the closest I've gotten:
I get this log followed by an error:
|
|
Are the webjars in "NPM format"? This folder: Or is what I have to do to extract out all those jars and build them into an actual node_modules directory and then pass that to ResourceFolder as the path? |
You need to pass the path of the resources at the very least (2nd arg of |
@malaporte the request is ment a little bit different as far as I understand it. |
I have a couple of simple modules that I'm trying to wrangle into Nashorn. One example is LoDash.
If I include it as a Maven dependency via webjars:
I technically have it in my classpath via the jar
lodash-4.17.4.jar
with an example path inside it of/META-INF/resources/webjars/lodash/4.17.4/index.js
.Is there any chance this is enough to be able to require the module? I'm figuring the version is one problem, and the other problem is not being sure how to reference the path in the ResourceFolder.
The text was updated successfully, but these errors were encountered: