From 753d7f4ad9b1d14cdee0663091d2ef079311ee38 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 15 Feb 2017 12:38:03 +0200 Subject: [PATCH] package.json: Update clean-css and build scripts Bootstrap had previously been staying with clean-css < 4.0 because it introduced some backwards incompatible changes[0], but now I see that they have started using the new version. I have also updated the npm build scripts to take into account the name change to "clean-css-cli" as well as the latest minification options that are being used by Bootstrap themselves[1]. [0] https://github.com/jakubpawlowicz/clean-css#important-40-breaking-changes [1] https://github.com/twbs/bootstrap/blob/v4-dev/package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a437f08..3213796 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 --skip-advanced 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 --level 1 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:generatesri": "node build/sri.js > data/sri.toml", @@ -19,7 +19,7 @@ "license": "GPL-3.0", "devDependencies": { "bootstrap": "4.0.0-alpha.6", - "clean-css": "^3.4.23", + "clean-css-cli": "^4.0.0", "cookieconsent": "^3.0.4", "font-awesome": "^4.7.0", "node-sass": "latest"