| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Development.Shake.Minify
Description
Minify JS and CSS files using no external $PATH dependencies.
main :: IO ()
main = shakeArgs shakeOptions $ do
want ["//*.min.js", "//*.min.css"]
"//*.min.js" *> minifyJs
"//*.min.css" *> minifyCss
Documentation
Given a .min.js path, find the .js file and minify it into the specified file name.
Arguments
| :: (FilePath -> FilePath) | Given a target minified JS file path, return the source JS file path. |
| -> FilePath | Desired minified JS file (ex: |
| -> Action () |
Same as minifyJs except take a function for custom file path mapping.
Given a .min.css path, find the .css file and minify it into the specified file name.