webjars / webjars-play

MIT License
80 stars 34 forks source link

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

Open jackchi opened 10 years ago

jackchi commented 10 years ago

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 commented 10 years ago

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: https://github.com/webjars/webjars-locator/pull/40

Sample app with Play: https://github.com/typesafehub/angular-seed-play/pull/12

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