var fs   = require('fs')
var path = require('path')

fs.readdirSync('build').forEach(function(filename) {
  exports[path.basename(filename, '.html')] = fs.readFileSync(path.resolve('build', filename), { encoding: 'utf8' })
})
var fs   = require('fs')
var path = require('path')

fs.readdirSync(path.resolve(__dirname, 'build')).forEach(function(filename) {
  exports[path.basename(filename, '.html')] = fs.readFileSync(path.resolve(__dirname, 'build', filename), { encoding: 'utf8' })
})
Use `__dirname` in export mechanism
Use `__dirname` in export mechanism
