Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.13 KB

index.md

File metadata and controls

43 lines (35 loc) · 1.13 KB

1.6 - Integrating other patterns

Integrating patterns from other bundles can be done as described in 1.1 - Integrate more bundles.

In a breeze, add the remote.min.js from that other bundle like so:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Patternslib training</title>
    <script>
      window.__patternslib_disable_modernizr = true;
      window.__patternslib_import_styles = true;
    </script>
    <script src="https://cdn.jsdelivr.net/npm/@patternslib/[email protected]/dist/bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@patternslib/[email protected]/dist/remote.min.js"></script>
  </head>
  ...

And then use a pattern from that bundle. In this case, pat-leaflet: