- copy
src/Halogen.Component.patch.js
to your codebase - change
webpack.config.js
to pointHalogen.Component/index.js
to the patched version
alias: {
"../Halogen.Component/index.js": "Halogen.Component.patch.js"
}
- setup hmr in your entry script
if (module.hot) {
module.hot.accept("Main", function() {
document.body.innerHTML = "";
require("Main").main();
});
}
NOTE: only tested with purescript-halogen master.