ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.
MIT License
241 stars 44 forks source link

New varible for SiteContents to determine build type #60

Closed robertpi closed 4 years ago

robertpi commented 4 years ago

This gives a cleaner way to test whether the refresh js socket should be injected or not

Krzysztof-Cieslak commented 4 years ago

Hey,

I’ve been thinking about something like that for a while and I think I’d prefer to use #WATCH define when it watch-mode rather than passing bool around.

robertpi commented 4 years ago

I think this would be easier to implement:

#if WATCH
#endif

Does that look okay?

Krzysztof-Cieslak commented 4 years ago

Oh, that's exactly what I've meant. I shouldn't write messages on GitHub before first tea ;-)

Krzysztof-Cieslak commented 4 years ago

I've implemented this in b8fffa974d43a99744a65e75a1ff44a89bbc83e4