Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions web/webkit/src/main/scala/net/liftweb/http/ResourceServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ object ResourceServer {
}

@volatile var pathRewriter: PartialFunction[List[String], List[String]] = rewriter orElse {
case "lift.js" :: Nil => List("lift-min.js")
case "json.js" :: Nil => List("json2-min.js")
case "json2.js" :: Nil => List("json2-min.js")
// These automatic rewrites have been disabled since we're not currently
// minifying our internal js files on build. There's an open question in
// my mind as to whether or not we _should_ continue doin that.
// case "lift.js" :: Nil => List("lift-min.js")
// case "json.js" :: Nil => List("json2-min.js")
// case "json2.js" :: Nil => List("json2-min.js")
case xs => xs
}

Expand Down Expand Up @@ -136,4 +139,3 @@ object ResourceServer {
pathRewriter = rw orElse pathRewriter
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class ResourceServerSpec extends Specification {
"default json to json2 minified version" in {
(ResourceServer.pathRewriter("json.js"::Nil) must_== List("json2-min.js")) and
(ResourceServer.pathRewriter("json2.js"::Nil) must_== List("json2-min.js"))
}
}.pendingUntilFixed
}
}