diff --git a/src/meta/js.js b/src/meta/js.js index 165e7f2b23..688e984ee7 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -155,11 +155,11 @@ module.exports = function(Meta) { cache: minifiedString, map: mapString }); - - // Save the minfile in public/ so things like nginx can serve it - Meta.js.commitToFile(); } + // Save the minfile in public/ so things like nginx can serve it + Meta.js.commitToFile(); + if (typeof callback === 'function') { callback(); }