Install using precompiled script / script tag
On each release of the @hmcts/cookie-manager library (starting with version 1.0), a precompiled, minified version of the script is attached to each release on GitHub.
Warning
If you`re developing a NodeJS based web-app, you should install with Node.js package manager (npm) instead.
Install the script
- Download the
cookie-manager-<VERSION-NUMBER>.min.js
file at the bottom of the latest @hmcts/cookie-manager release note. - Copy the
.js
file to a JavaScript folder in the root of your project’s public folder, so that for example<YOUR-SITE-URL>/javascript/cookie-manager-<VERSION-NUMBER>.min.js
shows the JavaScript file in your users’ browsers.
You can now begin configuring the library for your service.