This commit is contained in:
Joseph Garrone 2020-05-26 19:19:59 +02:00
parent dcf8421fba
commit 95d413a2ce
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ Import it via a bundle that creates a global ( wider browser support ):
```html
<script src="//unpkg.com/#{REPO_NAME}#/bundle.min.js"></script>
<script>
const { myFunction, myObject } = #{REPO_NAME}#;
const { myFunction, myObject } = #{REPO_NAME_NO_DASHES}#;
</script>
```

View file

@ -11,7 +11,7 @@
"scripts": {
"test": "node ./dist/test",
"tsc": "npx tsc",
"cdn:bundle:.js": "simplifyify dist/index.js -s #{REPO_NAME}# -o dist/bundle.js --debug --bundle",
"cdn:bundle:.js": "simplifyify dist/index.js -s #{REPO_NAME_NO_DASHES}# -o dist/bundle.js --debug --bundle",
"cdn:bundle:.min.js": "terser dist/bundle.js -cmo dist/bundle.min.js",
"cdn:bundle": "npm run cdn:bundle:.js && npm run cdn:bundle:.min.js",
"cdn:esm": "tsc -p tsconfig.esm.json",