gatsby-starter-blog-forestry/app.coffee
2015-06-11 20:24:03 -07:00

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