Skip to content

Instantly share code, notes, and snippets.

@Hypercubed
Created April 16, 2019 16:33
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 Hypercubed/e6f198ff61f5d2d9ec3a540a0ac3b9ca to your computer and use it in GitHub Desktop.
Save Hypercubed/e6f198ff61f5d2d9ec3a540a0ac3b9ca to your computer and use it in GitHub Desktop.
-/
node_modules/
package-lock.json
module.exports = {
"package_path": "./-/",
"package_root": "/-/"
}
<!doctype html>
<head>
<script type="module">
import * as d3 from '/-/d3@5.9.2.bundle.js';
d3.select('#hello').text('Hello World!!');
</script>
</head>
<body>
<div id="hello">What</div>
</body>
</html>
{
"name": "@swimlane/airdrop-example",
"private": true,
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"airdrop": "airdrop add d3@5.9.2 --bundle --optimize --clean"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@swimlane/airdrop-cli": "^1.0.0-rc1.6"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment