Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

"skippedContentGlobs" doesn't seem to work on Gulp plugin #853

Closed
stefanobartoletti opened this issue Feb 1, 2022 · 0 comments
Closed
Milestone

Comments

@stefanobartoletti
Copy link

stefanobartoletti commented Feb 1, 2022

I'm trying to prevent some files from being scanned by gulp-purgecss, but it does not seem to recognize the skippedContentGlobs option.

This is the relevant configuration on my Gulp tasks:

    .pipe(purgecss({
      content: [ './**/*.php', './src/js/**/*.js' ],
      skippedContentGlobs: [ 'node_modules/**', 'components/**', 'pattern-library.php' ],
      safelist: [ /^carousel-item.*/, /collapsing/, /show/ ]
    }))

but it doesn't work, since the final CSS bundle still contains classes from pattern-library.php.

Am I doing something wrong? How can I correctly configure purgecss to exclude specific files?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants