From 4d5612427422a310d2e16db8d95e36db1fd59ed1 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 3 Aug 2021 17:22:55 -0400 Subject: [PATCH] update installation instructions --- docs/getting-started/installation.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 6ca3d3415..d1878fc33 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -65,7 +65,7 @@ Here's an example that loads only the button component. Again, if you're not usi @@ -96,10 +96,10 @@ Once your bundler is configured, you'll be able to import Shoelace components an ```js import '@shoelace-style/shoelace/dist/themes/base.css'; -import SlButton from '@shoelace-style/shoelace/dist/components/button/button.js'; -import SlIcon from '@shoelace-style/shoelace/dist/components/icon/icon.js'; -import SlInput from '@shoelace-style/shoelace/dist/components/input/input.js'; -import SlRating from '@shoelace-style/shoelace/dist/components/rating/rating.js'; +import '@shoelace-style/shoelace/dist/components/button/button.js'; +import '@shoelace-style/shoelace/dist/components/icon/icon.js'; +import '@shoelace-style/shoelace/dist/components/input/input.js'; +import '@shoelace-style/shoelace/dist/components/rating/rating.js'; import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js'; // Set the base path to the folder you copied Shoelace's assets to @@ -108,4 +108,4 @@ setBasePath('/dist/shoelace'); // , , , and are ready to use! ``` -!> Component modules include side effects for registration purposes. Because of this, importing directly from `@shoelace-style/shoelace` may result in a larger bundle size than necessary. For optimal tree shaking, always import components and utilities from their respective files as shown above. \ No newline at end of file +!> Component modules include side effects for registration purposes. Because of this, importing directly from `@shoelace-style/shoelace` may result in a larger bundle size than necessary. For optimal tree shaking, always cherry pick, i.e. import components and utilities from their respective files, as shown above. \ No newline at end of file