Simple + fast build of PureScript with Webpack and Hot Module Replacement (HMR). No Pulp, no Gulp or anything else - just webpack.
"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?
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.
It's recommended to use yarn
yarn install
yarn start
- Documentation of webpack: "Hot Module Replacement" (HMR)
- "Hot Reloading in React or, an Ode to Accidental Complexity" by Dan Abramov
- Redux PR 1455 "RFC: remove React Transform from examples"
- purs-loader, purescript-webpack-plugin and purescript-webpack-example by ethul
- Webpack and React tutorial - Taking the next steps by Christian Alfoni
- An Angular 2 Starter kit featuring Angular 2 by AngularClass
- Counter Example of Pux, an awesome PureScript FRP interface to React by Alex Mingoia
Have fun :) -- Jens Krause -- jkrause.io