Skip to content
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

Require.Js does not use application.context properly #32

Open
jackchi opened this issue Feb 5, 2014 · 1 comment
Open

Require.Js does not use application.context properly #32

jackchi opened this issue Feb 5, 2014 · 1 comment

Comments

@jackchi
Copy link

jackchi commented Feb 5, 2014

In [PlayFramework 2.1] application.context in application.conf as such: application.context = "/jack"

I am unable to use both WebJars and RequireJS to resolve the correct path (e.g: http://localhost:9000/jack/...).

Require.js the file itself, loads with no problem, but its in the SBT (build.sbt or Build.scala) appDependencies where it is having problem resolving require.js . For example in this underscore WebJar, even if I exclude the transitive dependencies.

"org.webjars" % "underscorejs" % "1.5.2" exclude("org.webjars", "requirejs")

@jamesward
Copy link
Member

We've just rebuilt the RequireJS support and I don't think this will be an issue anymore. Can you give it a try? See:
webjars/webjars-locator#40

Sample app with Play:
typesafehub/angular-seed-play#12

Can you give that approach a try and let me know how it goes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants