minor fuckup with static files
This commit is contained in:
parent
8f8b33517a
commit
648e84ff9b
5 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
dist-newstyle
|
||||
.shake
|
||||
|
|
Binary file not shown.
|
@ -4,7 +4,7 @@ outputDir :: String
|
|||
outputDir = "publish"
|
||||
|
||||
assetGlobs :: [String]
|
||||
assetGlobs = ["static/*"]
|
||||
assetGlobs = ["static//*"]
|
||||
|
||||
pagePaths :: [String]
|
||||
pagePaths = ["links.typ"]
|
||||
|
|
|
@ -60,7 +60,7 @@ buildRules = do
|
|||
-- make a rule of the pattern outputDir/asset_name which copes from outputDir/../pages
|
||||
assets :: Rules ()
|
||||
assets = map (outputDir </>) assetGlobs |%> \target -> do
|
||||
let src = Shake.dropDirectory1 target </> "pages"
|
||||
let src = Shake.dropDirectory1 target
|
||||
Shake.copyFileChanged src target
|
||||
Shake.putInfo $ "Copied " <> target <> " from " <> src
|
||||
|
||||
|
|
Loading…
Reference in a new issue