60frames / jestpack

Jest Webpack Integration
MIT License
66 stars 3 forks source link

Add CommonsChunkPlugin example #7

Closed richardscarrott closed 8 years ago

richardscarrott commented 8 years ago

Having a separate entry point per test file can result in incredibly slow Webpack builds on a large codebase however using the CommonsChunkPlugin along with Jest's config.setupEnvScriptFile can significantly improve this. It would be good to provide an example.

It would also be good to include an example of incremental builds used along side Jest's watch.

richardscarrott commented 8 years ago

https://github.com/60frames/jestpack/commit/fe7b311e414d9129901c256fba4cc55273a292c6