]> piware.de Git - webcomponents.git/commitdiff
patternfly-cdn: Move to importmap master
authorMartin Pitt <martin@piware.de>
Fri, 8 Nov 2024 06:47:26 +0000 (07:47 +0100)
committerMartin Pitt <martin@piware.de>
Fri, 8 Nov 2024 06:47:26 +0000 (07:47 +0100)
In theory this should fix the icon loading, but it's still broken on
esm.sh.

patternfly-cdn.html

index d88eaf0ee936bc695b46a13dec5a36e69d1f0829..8150cddc1ce3e00b8e0010b1e250d19ec4e45df9 100644 (file)
   </style>
 </head>
 
-<script type="module" src="https://esm.sh/@patternfly/elements/pf-button/pf-button.js"></script>
-<script type="module" src="https://esm.sh/@patternfly/elements/pf-card/pf-card.js"></script>
-<script type="module" src="https://esm.sh/@patternfly/elements/pf-icon/pf-icon.js"></script>
+<script type="importmap">
+{
+    "imports": {
+        "@patternfly/": "https://esm.sh/@patternfly/"
+    }
+}
+</script>
+
+<script type="module">import "@patternfly/elements/pf-button/pf-button.js"</script>
+<script type="module">import "@patternfly/elements/pf-card/pf-card.js"</script>
+<script type="module">import "@patternfly/elements/pf-icon/pf-icon.js"</script>
 
 <body>