David Gilbertson
1 min readJun 11, 2019

--

My pleasure.

To me, the usefulness of a bundler is that it bundles up all of my import statements into the final bit of JavaScript and CSS that I need. Later splitting up this file into chunks doesn’t undo the usefulness of that first step.

I actually started this post with the idea of writing a Webpack plugin that replaced imports by pointing to CDN versions of libraries, which has the added benefit that if we all do it, then our web users will eventually wind up with half of npm cached locally.

But, I couldn’t bring myself to rely entirely on a third party site being up for my site to work. Maybe if the CDN was run by GitHub or some other giant with very high availability I would use it for a personal site. But even GitHub has been known to go down.

--

--

David Gilbertson
David Gilbertson

Responses (2)