We have few very useful plugins, which create another files whild execution:
Right now most of this plugins accepts callback and send new file to this callback.
Maybe we should add Result#files array. And plugins will be able to push addition file content to this array. PostCSS runner like gulp-postcss will look into this array and add all this files to output stream.
We can add this feature to 5.1 version.
/cc @outpunk @ctxhou @w0rm @jonathantneal @Termina1 @Ser-Gen
Well, I think I mess up with dest option :
All the files generated by my plugin alone is really only the result of the source transformation.
Standardized options in Postcss API and our plugins will be much better.
Maybe it can simplify processing of generated files?
It might be nice to use https://github.com/wooorm/vfile for this. 😄