We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c822058 commit b72de77Copy full SHA for b72de77
packages/gulp-purgecss/src/index.ts
@@ -11,9 +11,9 @@ export { UserDefinedOptions };
11
12
const PLUGIN_NAME = "gulp-purgecss";
13
14
-function getFiles(contentArray: string[]): string[] {
+function getFiles(contentArray: string[], ignore?: string[]): string[] {
15
return contentArray.reduce((acc: string[], content) => {
16
- return [...acc, ...glob.sync(content)];
+ return [...acc, ...glob.sync(content, { ignore })];
17
}, []);
18
}
19
@@ -33,7 +33,7 @@ function gulpPurgeCSS(options: UserDefinedOptions): internal.Transform {
33
try {
34
const optionsGulp = {
35
...options,
36
- content: getFiles(options.content),
+ content: getFiles(options.content, options.skippedContentGlobs),
37
css: [
38
{
39
raw: file.contents.toString(),
0 commit comments