Browse Source

Isolate elm output files

master
Julien Marquet 3 years ago
parent
commit
7eece79b0e
  1. 1
      .gitignore
  2. 6379
      src/main.js
  3. 7
      ssg/src/Main.hs

1
.gitignore vendored

@ -3,4 +3,5 @@ ssg/dist-newstyle
src/_cache src/_cache
src/_site src/_site
src/elm-stuff src/elm-stuff
src/_elm
result result

6379
src/main.js

File diff suppressed because it is too large Load Diff

7
ssg/src/Main.hs

@ -27,5 +27,10 @@ main = do
match "*.elm" $ do match "*.elm" $ do
route $ setExtension "js" route $ setExtension "js"
compile $ execCompilerWith (execName "elm") [ProcArg "make", HakFilePath, ProcArg "--output=main.js"] (COutFile $ SpecificPath "main.js") compile $ execCompilerWith (execName "elm")
[ ProcArg "make"
, HakFilePath
, ProcArg "--optimize"
, ProcArg "--output=_elm/main.js" ]
(COutFile $ SpecificPath "_elm/main.js")

Loading…
Cancel
Save