This is a starter template for those looking to use Elmish with Tailwind and CSS type provider.
It uses:
Elmish.ReactElmish.HMRFeliz(as a DSL instead of Elmish double list style)Zanaptak.TypedCssClasses(CSS type provider)Tailwind CSSPrettierWebpack 5Yarn(changing tonpmshould be quite easy just replaceyarnwithnpmin thepackage.jsonand removeyarn.lock)
yarn install
yarn first-startyarn startyarn buildThe files will wind up in deploy.
This repo is more or less a port of
@zanaptak's
Tailwind sample (a huge thanks to him!).
The difference is that this one uses Elmish instead of Feliz (Feliz is still used as a DSL). This difference meant
changing the hot module reload extension in Webpack, which took me a while to figure
out so here we are :D