From d1b8ba0e8a1298a91a31e66681e32e397c1a08ae Mon Sep 17 00:00:00 2001 From: Maciej Pietrzak Date: Sun, 2 Aug 2015 17:40:49 +0200 Subject: [PATCH] Fix parameter order for uglifyjs. --- yesod-static/Yesod/EmbeddedStatic/Generators.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yesod-static/Yesod/EmbeddedStatic/Generators.hs b/yesod-static/Yesod/EmbeddedStatic/Generators.hs index 08febb9e..fb7f2635 100644 --- a/yesod-static/Yesod/EmbeddedStatic/Generators.hs +++ b/yesod-static/Yesod/EmbeddedStatic/Generators.hs @@ -169,7 +169,7 @@ jasmine ct = return $ either (const ct) id $ minifym ct -- 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 to compress javascript. -- Assumes a script @yuicompressor@ is located in the path. If not, you can still