shake-minify-0.1.0: Shake Minify Actions

Safe HaskellNone
LanguageHaskell2010

Development.Shake.Minify

Description

Minify JS and CSS files similar to the following example:

main :: IO ()
main = shakeArgs shakeOptions $ do
    want ["//*.min.js", "//*.min.css"]
    "//*.min.js"   *> minifyJs
    "//*.min.css"  *> minifyCss

Synopsis

Documentation

minifyJs Source

Arguments

:: FilePath

Desired minified JS files (ex: "//*.min.js")

-> Action () 

Given a .min.js path, find the .js file and minify it into the specified file name.

minifyCss Source

Arguments

:: FilePath

Desired minified CSS files (ex: "//*.min.css")

-> Action () 

Given a .min.css path, find the .css file and minify it into the specified file name.