arpadHegedus / postcss-node-sass

A PostCSS plugin to parse styles with node-sass
MIT License
23 stars 16 forks source link

feat: emit dependency messages for all included files #6

Closed keithamus closed 5 years ago

keithamus commented 5 years ago

I'm using postcss-cli coupled with this plugin so I can use postcss to generate my sass files, and postcss-cli can watch for changes and recompile.

To watch for changes, postcss-cli needs to be informed of all dependencies that the CSS bundle has. It uses the messages of a postcss plugin to find the "dependencies" messages, and watches each file from this.

This PR adds those messages to the output, so that postcss-cli can pick them up and start watching them.