Skip to content

Emit a "dependency" message or expose dependencies to other tools #32

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wbinnssmith opened this issue Apr 23, 2019 · 0 comments
Open

Comments

@wbinnssmith
Copy link

As far as I can tell, postcss modules does not expose a way for other tools to understand which files it used as a dependency. Build tools like Webpack and Parcel can use this information to invalidate internal caches.

Other postcss plugins like postcss-import[0] and postcss-url[1] emit messages of the type "dependency" with a path to the referenced file.

Does postcss modules expose this kind of information? If not, would you be open to emitting similar messages as the other plugins?

Sorry if this is not the appropriate repository to file this, but I thought it might be the best place to emit similar messages. Please let me know if I'm misunderstanding in any way.

[0] https://github.com/postcss/postcss-import/blob/67f4553fd7fa43c9a3320d172e00e0cd6c6ddc46/index.js#L200
[1] https://github.com/postcss/postcss-url/blob/99dde5556f2aa3f76a40015015c0d01c2aa4c00e/src/lib/decl-processor.js#L60

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

No branches or pull requests

1 participant