1module Text.Hakyll.CompressCSS
7-- | Compress CSS to speed up your site.
8compressCSS :: String -> String
9compressCSS = stripComments
11-- | Function that strips CSS comments away.
12stripComments :: String -> String
14stripComments str | isPrefixOf "/*" str = stripComments $ eatComments $ drop 2 str
15 | otherwise = (head str) : (stripComments $ tail str)
16 where eatComments str' | null str' = []
17 | isPrefixOf "*/" str' = drop 2 str'
18 | otherwise = eatComments $ tail str'
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list