I know UNPKG is fast, reliable and free to use, but what if I overuse it, what will happen?
For example, I can use rollup instead of webpack to bundle my entire website as UMD build to a single JS, and publish it as a NPM package, and if I use React or Vue or any other SPA approach, the HTML markup all I need to ship to production is this minimum piece of code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>My Website</title>
<script src="https://unpkg.com/my-whole-website-umd"></script>
</head>
<body>
<div id="root"></div>
</body>
</html>
And UNPKG even help me to grab the latest version, which means if I publish my new package to NPM, my whole website that is in production will update:
<!-- this will always be the latest -->
<script src="https://unpkg.com/my-whole-website-umd"></script>
People can save thousands of server maintain money by using this approach.
Why UNPKG can still be free?