Skip to content

Building the JavaScript

The library loads js/browserclass.min.js. That file is built from js/browserclass.js with Babel (transpiled to ES5) and Terser (minified). Both files are committed.

After changing js/browserclass.js, rebuild the minified file:

npm ci
npm run build

Commit js/browserclass.js and js/browserclass.min.js together.

js/browserclass.min.js is excluded from ESLint through .eslintignore. The GitLab CI pipeline lints js/browserclass.js only.