From cb0cfebae3f3bdfd2787d3e5462ec5e273403319 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Fri, 26 Dec 2025 22:29:26 -0500 Subject: [PATCH] rethought how fingerprinting should work --- src/Psb/Main.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Psb/Main.hs b/src/Psb/Main.hs index 90e7db3..b62f719 100644 --- a/src/Psb/Main.hs +++ b/src/Psb/Main.hs @@ -72,7 +72,6 @@ buildRules = do assets postsRule rss - -- TODO: add rules for specifically the checksummed files which depend on the non-checksummed files css_resources js_resources @@ -87,12 +86,14 @@ css_resources :: Rules () css_resources = map (outputDir ) cssGlobs |%> \target -> do src <- Shake.readFile' $ FP.dropDirectory1 target + -- TODO: write to fingerprinted location as well Shake.writeFileChanged target $ CSS.minify src js_resources :: Rules () js_resources = map (outputDir ) jsGlobs |%> \target -> do src <- Shake.readFile' $ FP.dropDirectory1 target + -- TODO: write to fingerprinted location as well Shake.writeFileChanged target $ JS.minify src -- there's probably a better way of doing this that allows for the target's origin file extension to get passed in but for now we're doing brute force