News for hackers. Stuff that matters.
Re:CSS and JS code coverage in Chrome DevTools by lucaspiller on Thursday July 13, 2017 @05:23AM (#14759879)
We do something similar, but common code is shared. Webpack has a feature called chunking which we use to put everything from node_modules into it's own bundle which is loaded across multiple apps. Then the app specific code is loaded on each page.

https://webpack.js.org/plugins/commons-chunk-plugin

It does result in code being loaded when it isn't always needed, but in our case most libraries are used in every app.

There are no comments on this comment yet.