Commit 5e93d30d authored by Allan Blanchard's avatar Allan Blanchard
Browse files

Fix CSS minifying

parent 251459cf
Pipeline #39616 passed with stages
in 9 minutes and 17 seconds
......@@ -7,7 +7,7 @@ stages:
- test
- css
- deploy
variables:
JEKYLL_ENV: production
......@@ -49,15 +49,15 @@ check-css:
- test
script:
- npm install -g purify-css
- html=$(find test -name '*.html')
- find assets/css/ -name '*.css' ! -name swiper.css | xargs -I % purifycss % $html -o % --whitelist otherVersion --rejected > del-classes.o
- cat $(find test -name '*.html') > output.html
- find assets/css/ -name '*.css' ! -name swiper.css | xargs -I % purifycss % output.html -o % --whitelist otherVersion --rejected > del-classes.o
- if [ $(grep "PurifyCSS" del-classes.o | wc -l) = 0 ]; then echo "No CSS to clean"; else cat del-classes.o; exit 1; fi;
allow_failure: true
except:
- master
tags:
- docker
pages:
stage: deploy
script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment