From ef6bab5f0d7381542e605b51ab97bea13270de3c Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 11 Mar 2020 14:04:00 +0100 Subject: [PATCH] feat: Add purgecss --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e39a0e4..325af25 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "start": "hugo server -D", "serve": "(cd public && python3 -m http.server 8080)", - "build": "rm -rf public && hugo -D --minify && node themes/hugo-theme-lowtech/scripts/typo && DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +", + "build": "rm -rf public && hugo -D --minify && node themes/hugo-theme-lowtech/scripts/typo && purgecss --css public/css/*.css --content public/index.html --output public/css/ && DATE=`date +\"%Y0101\"` && find public -exec touch -d $DATE {} +", "favicon": "convert static/icon.png -resize 32x32 -colors 16 \\( -clone 0 -resize 16x16 -extent 16x16 \\) \\( -clone 0 -resize 32x32 -extent 32x32 \\) -delete 0 static/favicon.ico", "svgo": "svgo */**.svg", "deploy": "docker-compose up -d --build",