Skip to content

Commit

Permalink
chore(*): add comment for a workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
DiyanDimitrov committed Nov 24, 2021
1 parent ffb425e commit c1a37fc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ const getTheme = (themeName) => {

const themeProvider = (Story, context) => {
const theme = getTheme(context.globals.theme);
const htmlNoMin = html;

return htmlNoMin`
// Workaround for https://github.com/cfware/babel-plugin-template-html-minifier/issues/56
const htmlNoMin = html;
const styles = htmlNoMin`
<style>
${theme.default}
</style>
</style>`;

return htmlNoMin`
${styles}
${Story()}
`;
};
Expand Down

0 comments on commit c1a37fc

Please sign in to comment.