How to pipe data into webpack-cli

I need to pipe my entry point into webpack-cli instead of having the entry point coming from a file.

With Browserify, it's super simple:

{something that pipe to process.stdout} | browserify - --basedir ./foo

With Webpack, this does not work:

{something that pipe to process.stdout} | webpack - [...]

How can I achieve that?