Tuesday, 2 May 2017

How to use child_process in webpack

I'm trying to run command line functions in a directory while hosting a web application, but when I try to run the following code, it throws "Cannot resolve module 'child_process'":

var exec = require('child_process').exec;

It's running with webpack.



via Marcio Jorge

No comments:

Post a Comment