Skip to content

PurgeCSS not working #3266

@MUmarShahbaz

Description

@MUmarShahbaz

Have you checked that your issue isn't already filed?

  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • Yes, I have checked that this issue isn't already filed.

Bug description

PurgeCSS installs and runs, but doesn't do anything

How to reproduce the bug

Image

This is already happening with your repo. Here is a screenshot from your deploy.yml workflow run. PurgeCSS is empty. I didn't notice at first, but I modeled my own Jekyll site based on al-folio where I realized that PurgeCSS is not working.

Error messages and logs

The error message you got, with the full traceback if available. Please paste it between these triple backticks.

What operating system are you using?

Windows, Linux

Where are you seeing the problem on?

Deployed site

More info

After multiple debugging I have determined that it's not using the config properly at all. My solution is to inline the config when running purgeCSS.

purgecss --content './_site/**/*.html' './_site/**/*.js' --css './_site/assets/styles/*.css' --output './_site/assets/styles/'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions