summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-11-07 19:00:55 +0100
committerEugen Wissner <belka@caraus.de>2025-11-07 19:00:55 +0100
commita4a232befb2b81bf81a3656ab8cc869228964be5 (patch)
tree239a8c0a60ae979b6ee328065f3ccad16099dbc3 /src
parent86f7a15a2843f8c207124345d13969fb05ecc611 (diff)
downloadflevum-a4a232befb2b81bf81a3656ab8cc869228964be5.tar.gz
Compress CSS
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 861b9ce..65e29aa 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -4,7 +4,7 @@
module Main where
import Control.Monad (forM)
-import Data.List (isSuffixOf)
+import Data.List (isPrefixOf, isSuffixOf)
import Data.Time.Format (formatTime, FormatTime)
import Data.Time.Locale.Compat (defaultTimeLocale)
import Hakyll.Core.Compiler
@@ -79,8 +79,8 @@ configuration = Configuration
, storeDirectory = "./var/cache"
, tmpDirectory = "./var/cache/tmp"
, providerDirectory = "."
+ , ignoreFile = ignoreFile'
, watchIgnore = const False
- , ignoreFile = const False
, deployCommand = "rsync"
, deploySite = deploySite'
, inMemoryCache = True
@@ -90,7 +90,8 @@ configuration = Configuration
, previewSettings = Static.defaultFileServerSettings
}
where
- deploySite' deploymentConfiguration
+ ignoreFile' path = isPrefixOf "." path || path == "var"
+ deploySite' deploymentConfiguration
= readFile "deployment.txt"
>>= executeDeployment deploymentConfiguration
executeDeployment Configuration{..} deploymentTarget = rawSystem deployCommand