diff --git a/lib/commonplace.js b/lib/commonplace.js index fa1accb..8724020 100644 --- a/lib/commonplace.js +++ b/lib/commonplace.js @@ -286,6 +286,7 @@ function clean(src_dir, callback) { var targets = [ '_tmp', 'templates.js', + 'media/build_id.txt', 'media/imgurls.txt', 'media/css/include.css', 'media/js/include.js', @@ -528,12 +529,11 @@ function build_includes(src_dir, callback) { fs.writeFile(build_id_file, new Date().getTime(), function(err) { if (err) { console.error('Error writing `build_id.py` to disk.'); - return; + } else { + console.log('Created ' + build_id_file); } - console.log('Created ' + build_id_file); + callback(); }); - - callback(); } var build = require('./build.js');