I'm using the SBT Jetty embedding plugin. I noticed that if I ran:
java -jar myapp.war
that everything worked fine. If I ran:
java -Drun.mode=production -jar myapp.war
then:
curl localhost:8080/classpath/jquery.js
returned a 404 page from Lift.
This is in 2.4-SNAPSHOT. Am I missing something obvious, like /classpath
URLs not working in production or something? Doesn't make much sense,
but I'm kind of at a loss.
Thanks.
Jquery is served minified when running in production. I haven't
checked 2.4, but at one time we had a problem including the minified
version in the jar. You should verify if the minified jquery js
included in the jar
/Jeppe
find . -name '*jquery*js'
from the Lift checkout, I see JQuery 1.4.4 and 1.3.2. I don't see
.min.js files that I'd assume were minified versions.
What files from the checkout should I be looking for to determine their
presence in the webkit jar? Or is the minification happening in code?
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
You need to check the lift-webkit jar, not the source checkout.
Minification happens during build.
/Jeppe
> You need to check the lift-webkit jar, not the source checkout.
> Minification happens during build.
It seems that minification actually happens, but bnd-bundle ignores
all minified resources when bundling the jar.
- Mahmood
>> You need to check the lift-webkit jar, not the source checkout.
>> Minification happens during build.
bnd-bundle uses the main resources path (path to resources in
src/main/resources) rather than in target where the minified files
are: https://github.com/weiglewilczek/bnd4sbt/blob/master/src/main/scala/properties.scala#L142
. The `bndIncludeResource` should overriden to use
`mainResourcesOutputPath` instead, so that the minified files get
copied.
- Mahmood
- Mahmood
Thanks for diagnosing this. Could you open a ticket and reference this
thread ou need to be a watcher of the liftweb space)?
Jeppe
Created #1004: https://www.assembla.com/spaces/liftweb/tickets/1004-minified-files-aren-t-bundled-in-lift-jars
.
I also reported the issue to bnd4sbt:
https://github.com/weiglewilczek/bnd4sbt/issues/27 .
- Mahmood