mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 23:39:32 +01:00
11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
|
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)
|
||
|
}
|