Skip to content

Commit

Permalink
Make the vendor bundle hold vendor code
Browse files Browse the repository at this point in the history
By setting the vendor libs as entry points, we force the vendor code
into the vendor-bundle.js. This has the advantage in that app code
should be changing less often, so client browsers will have the vendor
bundle cached longer, and the smaller app bundle can be refreshed.

Warning on what gets included:

If in your vendor array you have react-router and
somewhere in the codebase you import react-router/es6 — this import
won't get to vendor bundle.
  • Loading branch information
justin808 committed Jul 21, 2016
1 parent 1548a8a commit e058da3
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 75 deletions.
Loading

0 comments on commit e058da3

Please sign in to comment.