Lightweight npm postinstall message to invite people to donate to your collective
npm install --save opencollective-postinstall
And in your package.json
add:
{
...
"scripts": {
"postinstall": "opencollective-postinstall"
},
"collective": {
"url": "https://opencollective.com/webpack"
}
...
}
In some places (e.g. CI) you may want to disable this output. You can do this by setting the environment variable DISABLE_OPENCOLLECTIVE=true
.
It will not be shown if npm's log level is set to silent (--silent
), warn (--quiet
), or error (--loglevel error
).