Skip to content

Commit

Permalink
perf: lazy load component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Oct 31, 2022
1 parent 2f90efe commit 53ea546
Show file tree
Hide file tree
Showing 12 changed files with 389 additions and 62 deletions.
2 changes: 0 additions & 2 deletions packages/components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ module.exports = {
}
</style>
<link rel="stylesheet" href="build/design-system-components.css" />
<link rel="stylesheet" type="text/css" href="assets/css/design-system-table.css" />
<link rel="stylesheet" type="text/css" href="assets/css/theme.css" />
<script type="module" src="build/design-system-components.esm.js"></script>
<script nomodule src="build/design-system-components.js"></script>`,
}

2 changes: 1 addition & 1 deletion packages/components/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ app.config.compilerOptions.isCustomElement = tag => tag.startsWith('bal-doc-')
export const decorators = [
story => ({
components: { story },
template: '<bal-doc-story class="bal-body"><story /></bal-doc-story>',
template: '<bal-doc-app><story /></bal-doc-app>',
}),
]

Expand Down
1 change: 0 additions & 1 deletion packages/components/config/doc.components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const docComponents = [
'bal-doc-lead',
'bal-doc-link-list',
'bal-doc-link-list-item',
'bal-doc-story',
'bal-doc-shades',
'bal-doc-support-color',
'bal-doc-tabs',
Expand Down
Loading

0 comments on commit 53ea546

Please sign in to comment.