From 245fe2c2354f30ac407971eb4047c3cb18a25d7f Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Sun, 25 Feb 2018 11:44:10 -0500 Subject: [PATCH] Add minify commit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ee8820bc..1bf7db68 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,6 @@ "test": "node test", "bench": "node test --bench", "build": "uglifyjs lib/marked.js -cm --comments /Copyright/ -o marked.min.js", - "preversion": "npm run build" + "preversion": "npm run build && (git diff --quiet || git commit -am 'minify')" } }