Skip to content

Commit

Permalink
Merge pull request #92 from DBCDK/85-hot-reloading
Browse files Browse the repository at this point in the history
add hotloading, fixes #85
  • Loading branch information
rasmuserik committed Aug 27, 2018
2 parents c402f3d + 2541df4 commit effb037
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ class Admin {

window.openPlatformQuiz.Widget = Widget;
window.openPlatformQuiz.Admin = Admin;

if (module.hot) {
module.hot.accept(['./components/Widget', './components/Admin'], () =>
window.initOpenPlatformQuiz()
);
}

0 comments on commit effb037

Please sign in to comment.