I am making console utility which accepts a path to configuration file as a console argument.

F.e: utility -f /path/to/file.js 

I need to require this file to read configuration. Is it possible to handle this with webpack? As I understand context can not help me in this situation.

Thanks.

P.S. I'm already using webpack.

P.S Solution is to use something like: eval('require')(dynamicPath)