Commit 728063eb authored by alek's avatar alek

purgecss via jekyll-purgecss #19

parent b11219ce
Pipeline #323 failed with stage
in 1 minute and 36 seconds
......@@ -12,13 +12,13 @@ variables:
# Build is in `before_script` because it's the same for both deployments
before_script:
- apk add npm
- npm install
- npm ci
- bundle install
- ./scripts/ci_fix_baseurl.sh
- jekyll build -d public
- ./scripts/purgecss.sh public
- ./scripts/minifycssjs.sh public
- ./scripts/add_mailinglist_symlink.sh public
- bundle exec jekyll build
- mv _site public
- ln -sf faq_mailinglist/index.html "public/faq_mailinglist.html"
deploy-prod:
stage: deploy
......
......@@ -11,6 +11,7 @@ highlighter: rouge
plugins:
- jekyll-paginate
- jekyll-sitemap
- jekyll-minifier
paginate: 5
navigation:
......
#!/bin/bash
sitedir="$1"
ln -sf faq_mailinglist/index.html "$sitedir/faq_mailinglist.html"
#!/bin/bash
sitedir="$1"
echo "Purging unused CSS..."
./node_modules/.bin/purgecss \
--css "$sitedir"/assets/css/'*'.css \
--content "$sitedir"/index.html "$sitedir"/'**/*.html' "$sitedir"/assets/js/'*.js' \
--out "$sitedir"/assets/css/
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