sectore / purescript-webpack-vanilla-hmr

PureScript + webpack + vanilla HMR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

purescript-webpack-vanilla-hmr

Simple + fast build of PureScript with Webpack and Hot Module Replacement (HMR). No Pulp, no Gulp or anything else - just webpack.

screenshot

Why?

"I strongly suggest you to consider using vanilla HMR API instead of React Hot Loader, React Transform, or other similar projects. It’s just so much simpler—at least, it is today."

Quote by Dan Abranov (Creator of Redux, React Hot Loader etc.)

Why not the using the same stuff for building PureScript application today?

Do I need this to run Pux with HMR?

To demonstrate the feature of HMR the example app uses Pux under the hood. However, Pux's starter-app has already merged the HMR solution from here. So you don't need to implement this HMR thing into your Pux app.

Installation

It's recommended to use yarn

yarn install
yarn start

Open http://localhost:3000/

Acknowledge

License

MIT

Have fun :) -- Jens Krause -- jkrause.io

About

PureScript + webpack + vanilla HMR

License:MIT License


Languages

Language:JavaScript 66.4%Language:PureScript 29.9%Language:HTML 3.8%