This is a starter template for those looking to use Elmish with Tailwind and CSS type provider.
It uses:
Elmish.React
Elmish.HMR
Feliz
(as a DSL instead of Elmish double list style)Zanaptak.TypedCssClasses
(CSS type provider)Tailwind CSS
Prettier
Webpack 5
Yarn
(changing tonpm
should be quite easy just replaceyarn
withnpm
in thepackage.json
and removeyarn.lock
)
yarn install
yarn first-start
yarn start
yarn build
The 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