/cycle-hmr-example

A Cycle.js starter project using browserify and cycle-hmr

Primary LanguageJavaScriptMIT LicenseMIT

cycle-hmr-example

A Cycle.js starter project using browserify and cycle-hmr.

Usage

To get set up:

git clone https://github.com/mciparelli/cycle-hmr-example.git
cd cycle-hmr-example
npm install
npm start

You should already see a small counter opened in your browser of choice.

You can then go into src/index.js and change whatever DOM you like, and you should see the result straight away.

You can also change the styles in styles.css and it will live reload.

Strongly inspired by Widdershin's https://github.com/Widdershin/cycle-hot-reloading-example

This is made possible by AgentME/browserify-hmr, along with mattdesl's excellent budo development server.

All of the hot reloading configuration lives in .babelrc thanks to whitecolor/cycle-hmr babel plugin.