Started moving to ES6, JSX
This commit is contained in:
parent
a896447db1
commit
82fa9f21a2
6 changed files with 88 additions and 69 deletions
11
app.js
Normal file
11
app.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
exports.loadContext = function(callback) {
|
||||
var context;
|
||||
context = require.context('./pages', true);
|
||||
if (module.hot) {
|
||||
module.hot.accept(context.id, function() {
|
||||
context = require.context('./pages', true);
|
||||
return callback(context);
|
||||
});
|
||||
}
|
||||
return callback(context);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue