Skip to content

Instantly share code, notes, and snippets.

@edoardocavazza
Last active January 9, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edoardocavazza/1b95305adfd6cb17f0c4ba465bd0995b to your computer and use it in GitHub Desktop.
Save edoardocavazza/1b95305adfd6cb17f0c4ba465bd0995b to your computer and use it in GitHub Desktop.
<script src="node_modules/unchained-js/dist/unchained.client.js"></script>
<script>
// register a Service Worker.
UnchainedClient.register('sw.js', { scope: '/' }).then(
// The Service Worker is ready, we can now import the main file.
UnchainedClient.import('index.js')
);
</script>
@HugoDF
Copy link

HugoDF commented Jan 9, 2018

<script src="https://unpkg.com/unchained-js@0.2.0/dist/unchained.client.js"></script> and you can get rid of the local node module + have something that is deploy-ready :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment