diff --git a/Yesod/EmbeddedStatic/Generators.hs b/Yesod/EmbeddedStatic/Generators.hs
--- a/Yesod/EmbeddedStatic/Generators.hs
+++ b/Yesod/EmbeddedStatic/Generators.hs
@@ -169,7 +169,7 @@
 -- to both mangle and compress and the option \"-\" to cause uglifyjs to read from
 -- standard input.
 uglifyJs :: BL.ByteString -> IO BL.ByteString
-uglifyJs = compressTool "uglifyjs" ["-m", "-c", "-"]
+uglifyJs = compressTool "uglifyjs" ["-", "-m", "-c"]
 
 -- | Use <http://yui.github.io/yuicompressor/ YUI Compressor> to compress javascript.
 -- Assumes a script @yuicompressor@ is located in the path.  If not, you can still
diff --git a/yesod-static.cabal b/yesod-static.cabal
--- a/yesod-static.cabal
+++ b/yesod-static.cabal
@@ -1,5 +1,5 @@
 name:            yesod-static
-version:         1.5.0.1
+version:         1.5.0.2
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
