Skip to content

robpalme/unpkg-demos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains demos of using unpkg.com to load and run various libraries in different ways. Each demo contains a README that explains a little bit more about how to use it and why it's interesting.

The following demos are currently available:

  • global-react - Loads React as a global with JSX support
  • webpack-react - Uses webpack to automatically detect and load React as a global, with JSX compilation at build time
  • systemjs-react - Uses SystemJS to load React as modules, with JSX support
  • systemjs-angular - Uses SystemJS to load Angular as modules, with TypeScript support
  • module-d3 - Uses <script type=module> to load D3 and all of its dependencies from the CDN. Only works in Chrome 61+ and other browsers that have support for <script type=module>

If you're using a technique you don't see listed here, please contribute! There are lots of different ways to use unpkg, and we're just scratching the surface.

About

Experiments in how to use unpkg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 49.5%
  • JavaScript 43.0%
  • TypeScript 7.5%