Add jekyll-purgecss to CI builds

parent 7c19d347
Pipeline #94 passed with stage
in 1 minute and 56 seconds
......@@ -9,13 +9,15 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apk add npm
- npm install
- bundle install
- ./scripts/ci_fix_baseurl.sh
deploy-prod:
stage: deploy
script:
- apk add rsync
- bundle install
- jekyll build -d public
- mkdir -p "$HOME/.ssh"
- echo "$SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
......@@ -25,14 +27,13 @@ deploy-prod:
cache:
key: gems
paths:
- "/usr/local/bundle"
- "/usr/local/bundle"
only:
- master
pages:
stage: deploy
script:
- bundle install
- jekyll build -d public
artifacts:
paths:
......
......@@ -4,3 +4,4 @@ gem "jekyll"
gem "jekyll-paginate"
gem "support-for"
gem "jekyll-sitemap"
gem 'jekyll-purgecss'
......@@ -36,3 +36,8 @@ social:
youtube: POuLpolimi
rss: '/feed.xml'
email: https://list.poul.org/postorius/lists/mailinglist.poul.org/
plugins:
- jekyll-purgecss
css_dir: "assets/css"
module.exports = {
// These are the files that Purgecss will search through
content: ["./_site/**/*.html", "./_site/*.html"],
// These are the stylesheets that will be subjected to the purge
css: ["./_site/assets/css/*.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