Fixes an issue where running npm install dicontainer fails when uglify-js is not already installed on the system, with the following error:
npm install dicontainer
sh: uglifyjs: command not found
npm ERR! firstname.lastname@example.org postinstall: `cp ./index.js ./dist/dicontainer.js && uglifyjs ./dist/dicontainer.js -o ./dist/dicontainer.min.js && npm test`
npm ERR! Exit status 127
npm ERR! Failed at the email@example.com postinstall script.
npm ERR! This is most likely a problem with the dicontainer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cp ./index.js ./dist/dicontainer.js && uglifyjs ./dist/dicontainer.js -o ./dist/dicontainer.min.js && npm test
npm ERR! You can get their info via:
npm ERR! npm owner ls dicontainer
npm ERR! There is likely additional logging output above.
The dependency isn't installed automatically.
Fixes an issue where running `npm install dicontainer` fails when ugl…
…ifyjs is not already installed on the system
Thanks @mablack :)