Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for glob matching when watching dir-dependency#391

New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
RyanZim merged 1 commit intopostcss:masterfrom1st8:master
Sep 23, 2021

Conversation

1st8
Copy link
Contributor

This extends#383 to pass glob information on to chokidar, with the intention of reducing outputs when unrelated files are modified.

In my test example the output should only be triggered when files matching theglob: '**/*.css' are modified, but not when theunrelated.md file is modified.

A real world example where I thought watching a whole directory without applying the glob could be problematic, would be a full stack project where tailwind checks backend templates by file type for purging:

{plugin:'tailwindcss',parent:'/home/1st8/sample_phoenix_project/assets/css/app.css',type:'dir-dependency',dir:'/home/1st8/sample_phoenix_project',glob:'**/*.heex'}

In this case I really only want to trigger rebuilds when changing one of the listed file types.

Chokidar supports all this out of the box btw.

Let me know what you think and thanks for the great project!
Cheers!

This extendspostcss#383 to pass glob information on to chokidar, with the intention of reducing outputs when unrelated files are modified
@RyanZim
Copy link
Collaborator

I'm not closed to this idea; are there any plugins that use this.glob property? Dependency messages are standardized across the ecosystem, all runners will have to support this, cc@ai for thoughts.

@ai
Copy link
Member

ai commentedSep 23, 2021

@RyanZim
Copy link
Collaborator

Ah, wasn't up on the standards changes, in that case, LGTM.

@RyanZimRyanZim merged commit71f7d29 intopostcss:masterSep 23, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@RyanZimRyanZimRyanZim approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@1st8@RyanZim@ai

[8]ページ先頭

©2009-2025 Movatter.jp