Document how to use local lottie-player.js

Created on 7 September 2023, 10 months ago
Updated 16 September 2023, 10 months ago

Problem/Motivation

It'd be nice if the readme would tell how to replace the lottie-player.js library from unpkg.com with a locally hosted file.

Proposed resolution

General documentation at https://www.drupal.org/docs/develop/theming-drupal/adding-assets-css-js-... โ†’ can be followed:

In your theme's .info.yml file, add:

libraries-override:
  media_entity_lottie/lottie_player:
    js:
      https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js: js/lottie-player-2.0.2.min.js
๐Ÿ“Œ Task
Status

Closed: won't fix

Version

2.0

Component

Documentation

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany cweiske

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024