feature(webpack): Propagate errors from webpack stats (#871)
feature(webpack): Propagate errors from webpack stats (#871)

* Propagate errors from webpack stats

Prior to this patch, the script would only raise errors raised directly
by webpack and skip errors raised from the compilation. This is contrary
to what webpack suggests in terms of error handling[1].

This patch makes it so that any compilation errors will cause ionic to
also abort the build, while any compilation warnings will log a warning
through ionic's Logger.

* Update webpack.ts

driftyco/ionic-app-scripts,michaelgeorgeattard/ionic-app-scripts,rolandjitsu/ionic-app-scripts,michaelgeorgeattard/ionic-app-scripts,driftyco/ionic-app-scripts,rolandjitsu/ionic-app-scripts,michaelgeorgeattard/ionic-app-scripts,rolandjitsu/ionic-app-scripts,driftyco/ionic-app-scripts