Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (10 sloc) 274 Bytes
exports.loadContext = function (callback) {
let context = require.context('./pages', true)
if (module.hot) {
module.hot.accept(context.id, () => {
context = require.context('./pages', true)
return callback(context)
})
}
return callback(context)
}
Something went wrong with that request. Please try again.