Extends and standardize dependency message
See original GitHub issueresult.messages.push({ type: 'dependency', file })
is a special API for plugin developers to tell about used files to PostCSS runner. The most popular way to use it is a watch mode.
But seems like we need to improve this message:
- Just the file path is not enough. For instance,
postcss-mixins
accept glob pattern. - Seems like webpack’s css-loader needs more types:
missing
,build
,context
and regular dependencies. I do not like separated types likebuild-dependency
. I think it will be better to use{ type: 'dependency', build: true }
Questions:
- @mischnic @RyanZim Can every runner support glob-pattern for file watch?
- @alexander-akait can you explain what is build/context/missed dependency? It maybe a good idea to use these messages in other builders too.
Issue Analytics
- State:
- Created 3 years ago
- Comments:26 (20 by maintainers)
Top Results From Across the Web
Extends and standardize dependency message - - Bountysource
Seems like webpack's css-loader needs more types: missing , build , context and regular dependencies. I do not like separated types like build-dependency...
Read more >Learning the Basics - Gradle User Manual
Gradle can consume dependencies available in the local Maven repository. Declaring this repository is beneficial for teams that publish to the local Maven ......
Read more >Dependency tracking in Application Insights - Azure Monitor
Monitor dependency calls from your on-premises or Azure web application with Application Insights.
Read more >Understanding Dependency Injection in .NET Core - Auth0
The framework provides extension methods to register and configure dependencies for the most common services.
Read more >Working with dependency injection in .NET Standard
Working with dependency injection in .NET Standard: inject your AWS clients – part 2 · You might have complex configuration needs (development ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK. It will be more CSS-ish.
We need compatibility with old API
We added optional
glob
parameter todir-dependnecy
:{ type: 'dir-dependency', dir: '/imported', glob: '**/*.css', }
https://github.com/postcss/postcss/pull/1590