From cb5e13bb0580b09d792b3e9e58bffa297e500862 Mon Sep 17 00:00:00 2001 From: Chris Van Date: Thu, 12 Dec 2013 14:59:15 -0800 Subject: [PATCH] build_id fixes (thanks @mattbasta) --- lib/commonplace.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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');