答案 0 :(得分:1)
我认为找到解决方案的关键是using clay with hakyll在我们拥有的粘土部分
match "css/*.hs" $ do
route $ setExtension "css"
compile $ getResourceString >>= withItemBody (unixFilter "runghc" [])
-- cabal sandbox users can use (unixFilter "cabal" ["exec", "runghc"])
-- given that you've added cabal to your PATH
我认为您可以使用相应的"runghc" []
替换"gulp" ["buildcss"]
部分,并添加另一部分match "js/*.js
match "css/*.scss" $ do
route $ setExtension "css"
compile $ getResourceString >>= withItemBody (unixFilter "gulp" ["buildcss"])
match "js/*.js" $ do
route $ setExtension "js"
compile $ getResourceString >>= withItemBody (unixFilter "gulp" ["buildjs"])
注意:此代码未经测试,因为我在设置中没有使用gulp。