9 lines
230 B
CoffeeScript
9 lines
230 B
CoffeeScript
exports.loadContext = (callback) ->
|
|
context = require.context './pages', true
|
|
if module.hot
|
|
module.hot.accept(context.id, ->
|
|
context = require.context './pages', true
|
|
callback context
|
|
)
|
|
|
|
callback context
|