Skip to main content

Migrating from dist

From 4.0.0, lbh-frontend no longer ships minified CSS, JavaScript, or assets under dist/. Use npm and compile Sass / bundle JavaScript in your application build.

If you used script tags and window.LBHFrontend​

Migrate to a bundler (Webpack, Vite, Parcel, etc.) and import from the package:

import { initAll } from "lbh-frontend";

initAll();

Import styles from lbh/ in your Sass entrypoint — see installing with npm.

See starter kits for framework examples.

If you downloaded files from GitHub​

That workflow is no longer supported. Pin to 3.7.x if you need time to migrate, then upgrade to 4.x with a build pipeline.