Accept HMR

This commit is contained in:
Kevin van Zonneveld 2016-12-03 13:59:49 +01:00
parent 8ce2ed44c0
commit b14eec4675

View File

@ -1,3 +1,13 @@
require('./main.js')
require('./style.css')
require('./syntax.css')
// check if HMR is enabled
if (module.hot) {
module.hot.accept('./main.js', function () {
require('./main.js');
});
module.hot.accept('./style.css', function () {
require('./style.css');
});
}