posthog-1.0.0-alpha5/modules/posthog_js/posthog_js.libraries.yml
modules/posthog_js/posthog_js.libraries.yml
init:
js:
js/init.js:
attributes:
id: posthog-js-init
dependencies:
- core/drupal
- core/drupalSettings
# If the "cdn" setting is disabled, we replace the "cdn" library dependency
# with the "local" library in posthog_js_library_info_alter().
- posthog_js/cdn
cdn:
js:
js/cdn.js:
attributes:
id: posthog-js-cdn
local:
remote: https://github.com/PostHog/posthog-js
version: VERSION
license:
name: 'Apache License, Version 2.0'
url: https://github.com/PostHog/posthog-js/blob/master/LICENSE
gpl-compatible: true
js:
# Override this, if you need something different:
/libraries/posthog-js/dist/array.full.js:
minified: true
attributes:
id: posthog-js-local
