From 85b1fe36185edf426a47963c74df5b028f4daa28 Mon Sep 17 00:00:00 2001 From: Richard Stevens Date: Sun, 28 Jan 2018 22:34:14 +0000 Subject: [PATCH] Updating to support callback --- package.json | 2 +- src/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 47b2c26..2646c0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holidayextras/static-site-generator", - "version": "7.0.1", + "version": "7.0.2", "description": "Holiday Extras Static Site Generator in metalsmith / react", "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index 336b566..127e65a 100644 --- a/src/index.js +++ b/src/index.js @@ -54,6 +54,7 @@ const MetalSmithLoader = (opts) => { metalSmith.build(function (err) { if (err) throw err + if (opts.callback) opts.callback() }) }