webpackr
More or less does what webpack-cli
does, but from a script because the webpack-cli
auto-install process is derp and causes npm
to incorrectly resolve dependencies. Why webpack
, why?
Code stolen (shamelessly) from https://webpack.js.org/api/node/#error-handling.