summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Hakyll/Web/CompressCss.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Hakyll/Web/CompressCss.hs b/src/Hakyll/Web/CompressCss.hs
index 8f67c7c..a032b10 100644
--- a/src/Hakyll/Web/CompressCss.hs
+++ b/src/Hakyll/Web/CompressCss.hs
@@ -65,6 +65,8 @@ compressWhitespace str
stripComments :: String -> String
stripComments [] = []
stripComments str
+ | isPrefixOf "\"" str = head str : retainConstants stripComments "\"" (drop 1 str)
+ | isPrefixOf "'" str = head str : retainConstants stripComments "'" (drop 1 str)
| isPrefixOf "/*" str = stripComments $ eatComments $ drop 2 str
| otherwise = head str : stripComments (drop 1 str)
where