From efe4f3465123ec0fee0ff995af6f8c0dcd62c4eb Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 9 Jan 2017 12:02:19 +0200 Subject: [PATCH] package.json: Update cleancss invocation The Bootstrap project uses --skip-advanced, so we should too. This increases the size of style.css by ~4KiB but should be safer. See: https://github.com/twbs/bootstrap/blob/v4-dev/package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec8637a..0b07442 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/alanorth/hugo-theme-bootstrap4-blog.git" }, "scripts": { - "build:css": "node-sass --output-style expanded --precision 6 source/scss/style.scss static/css/style.css.tmp && cleancss static/css/style.css.tmp -o static/css/style.css", + "build:css": "node-sass --output-style expanded --precision 6 source/scss/style.scss static/css/style.css.tmp && cleancss --skip-advanced static/css/style.css.tmp -o static/css/style.css", "build:fonts": "cp node_modules/font-awesome/fonts/* static/fonts", "build:cookieconsent": "cp node_modules/cookieconsent/build/cookieconsent.min.css static/css && cp node_modules/cookieconsent/build/cookieconsent.min.js static/js", "build": "npm run build:css && npm run build:fonts && npm run build:cookieconsent && npm run clean",