diff --git a/.changeset/fuzzy-clocks-compete.md b/.changeset/fuzzy-clocks-compete.md new file mode 100644 index 0000000..691fbd8 --- /dev/null +++ b/.changeset/fuzzy-clocks-compete.md @@ -0,0 +1,5 @@ +--- +'@parsonic/share-button': minor +--- + +Add minified distributions of share button diff --git a/packages/share-button/README.md b/packages/share-button/README.md index cebf0e7..03eff3d 100644 --- a/packages/share-button/README.md +++ b/packages/share-button/README.md @@ -11,7 +11,8 @@ npm install --save @parsonic/share-button ## Usage The share button can be used with your favourite bundler or directly -from a CDN. +from a CDN. Minified builds for the browser are supplied in the [`dist` +directory](`https://cdn.jsdelivr.net/npm/@parsonic/share-button@latest/dist/index.js`) ### Quick start diff --git a/packages/share-button/package.json b/packages/share-button/package.json index 8a18e2f..7f8025a 100644 --- a/packages/share-button/package.json +++ b/packages/share-button/package.json @@ -11,6 +11,7 @@ "scripts": { "build": "esbuild index.js ShareButton.js --bundle --minify --sourcemap --outdir=dist --format=esm", "clean": "rm -rf dist", + "prepare": "cp ../../LICENSE ./", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [