Last active
January 9, 2018 13:52
-
-
Save edoardocavazza/1b95305adfd6cb17f0c4ba465bd0995b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<script src="https://unpkg.com/[email protected]/dist/unchained.client.js"></script>
and you can get rid of the local node module + have something that is deploy-ready :D