Switch to purging css only in production

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
pull/6/head
parent 6bbec3fac9
commit 212caea3c4
Signed by: millironx
GPG Key ID: 139C07724802BC5D

@ -32,7 +32,7 @@ jobs:
npm install
- name: Run Hugo
run: |
hugo
hugo --environment production --minify
- name: Deploy to gh-pages
if: ${{ !env.ACT }}
uses: rdarida/simple-github-pages-deploy-action@v1

@ -6,6 +6,8 @@ const purgecss = require("postcss-purgecss")({
},
});
module.exports = {
plugins: [purgecss],
};
if (process.env.HUGO_ENVIRONMENT === 'production') {
module.exports = {
plugins: [purgecss],
};
}

Loading…
Cancel
Save