Add standalone build

This commit is contained in:
Luiz Américo 2019-06-06 20:08:48 -03:00
parent f80058a68a
commit f4888ee75b
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- Add support for named destinations
- Throw errors when `dash(...)` is passed invalid lengths
- Remove PDFDocument#output method
- Add standalone build (js/pdfkit.standalone.js)
### [v0.9.1] - 2019-04-30

View File

@ -51,7 +51,7 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"build": "rollup -c",
"build": "rollup -c && browserify --standalone PDFDocument js/pdfkit.js > js/pdfkit.standalone.js",
"demo": "cd demo && node test.js",
"browser-demo": "browserify demo/browser.js > demo/bundle.js",
"pdf-guide": "node docs/generate.js",