FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

[plugin-webpack] Allow to customize webpack's stats output via config #160

Closed DorianGrey closed 4 years ago

DorianGrey commented 4 years ago

Hey guys,

while the default stats object presented by webpack is mostly sufficient, some people might like to modify it directly, or changing the preset, or just turn them off and replace the reporting with a custom plugin (that's me). While webpack allows to configure this behavior, this configuration value has to be forwarded explicitly when using the compiler API.

This PR adds forwarding of webpackconfig.stats to the relevant calls to stats.to{X}.