Skip to content

Add glob message property documentation#1590

Merged
ai merged 1 commit intopostcss:mainfrom
bradlc:glob
Jun 1, 2021
Merged

Add glob message property documentation#1590
ai merged 1 commit intopostcss:mainfrom
bradlc:glob

Conversation

@bradlc
Copy link
Copy Markdown
Contributor

@bradlc bradlc commented Jun 1, 2021

As discussed in #1585 this pull requests adds documentation for an optional glob property for dir-dependency messages. This property can be used to indicate which files within a directory a plugin depends on:

result.messages.push({
  type: 'dir-dependency',
  plugin: 'postcss-import',
  dir: '/imported',
  glob: '**/*.css',
  parent: result.opts.from
})

@bradlc
Copy link
Copy Markdown
Contributor Author

bradlc commented Jun 1, 2021

I totally forgot to add @DeMoorJasper as a co-author on the commit but this was 100% their idea! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants