From 1800fc2fb866780c4bdd61704779c38c6eb7ff95 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 26 Sep 2016 09:52:44 +0300 Subject: [PATCH] package.json: Add cssnano to dev dependencies Processing style.css with cssnano saves 1KB. Guess it's useful. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e658347..a622165 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 compressed source/scss/style.scss static/css/style.css", + "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" }, @@ -16,6 +16,7 @@ "license": "GPL-3.0", "devDependencies": { "bootstrap": "4.0.0-alpha.4", + "cssnano": "^3.7.5", "font-awesome": "4.6.3", "node-sass": "3.10.0" }