Skip to content

Commit

Permalink
build: use cdn link in setBasePath to make icons available anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 31, 2024
1 parent f78041b commit 73d4b17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions react/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Index to import all components together
// import '@hotosm/ui/react';

// setBasePath makes the icons available via CDN, instead of expecting them to be
// on the webserver the runs the web-component
import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js';
setBasePath('https://cdn.jsdelivr.net/npm/@hotosm/ui@latest/dist');

export { default as Button } from './Button';
export { default as Header } from './Header';
export { default as Toolbar } from './Toolbar';
Expand Down

0 comments on commit 73d4b17

Please sign in to comment.