react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

V4 -- remove asset size warning on dev builds #317

Open sthzg opened 7 years ago

sthzg commented 7 years ago

New webpack versions introduce a warning when chunk sizes are above a threshold. As during dev the non-optimized bundles are served a bunch of warnings appear both in the terminal and the web dev console. Should be fixed by configuring that warning to only appear in dist builds.

Update: background https://medium.com/webpack/webpack-performance-budgets-13d4880fbf6d#.jq5mf9hlb

Configurable with

// in Dev.js, Test.js
performance: {
  hints: false
}