From 265c9ade22edaee43a26aab06a9daf02aa74c631 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 30 Aug 2019 06:58:18 -0700 Subject: ibb: fix javascript reference --- apex/Ibb.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apex') diff --git a/apex/Ibb.hs b/apex/Ibb.hs index 973960c..c626f3f 100644 --- a/apex/Ibb.hs +++ b/apex/Ibb.hs @@ -29,6 +29,7 @@ main = do port <- read <$> fromMaybe "3000" <$> lookupEnv "PORT" :: IO Int + say "port: 3000" run port $ logStdout $ compress $ app where compress = gzip def { gzipFiles = GzipCompress } @@ -42,14 +43,14 @@ instance L.ToHtml a => L.ToHtml (HtmlPage a) where L.doctypehtml_ $ do L.head_ $ do L.meta_ [L.charset_ "utf-8"] - jsRef "/static/app.js" + jsRef "/static/all.js" L.body_ (L.toHtml x) where jsRef href = L.with (L.script_ mempty) [ makeAttribute "src" href , makeAttribute "type" "text/javascript" - -- , makeAttribute "async" mempty - -- , makeAttribute "defer" mempty + , makeAttribute "async" mempty + , makeAttribute "defer" mempty ] type ServerRoutes = ToServerRoutes Routes HtmlPage Action -- cgit v1.2.3