Skip to content

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

@stefanobartoletti

Description

@stefanobartoletti

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions