-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
result.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-mixinsaccept glob pattern. - Seems like webpack’s css-loader needs more types:
missing,build,contextand 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.
Reactions are currently unavailable