From 05c962a79718abe80fb1f7a4b1fc19077d65f8b8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 26 Sep 2016 10:06:47 +0300 Subject: [PATCH] package.json: Add clean task to remove temp style Ignoring the temporary, intermediate style in .gitignore works for this project, but the site still ends up with a copy of it in its public folder. It's better to just clean up the temp file after successful generation of the minified style. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c58c77..41f801e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "scripts": { "build:css": "node-sass --output-style compressed source/scss/style.scss static/css/style.css.tmp && cssnano static/css/style.css.tmp static/css/style.css", "build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts", - "build": "npm run build:css && npm run build:fonts" + "build": "npm run build:css && npm run build:fonts && npm run clean", + "clean": "rm static/css/style.css.tmp" }, "keywords": "hugo", "author": "Alan Orth",