The component will be rendered in the iframe. But I want to set the reset.css to clean the browser default style of the iframe. The reset.css is not included in the component code. I wonder how to solve this problem?
Hi you could import your reset css in .storybook/config.js
import '!style-loader!css-loader!sass-loader!../src/styles/reset.css';
or you can use a custom head tag <link rel="stylesheet" type="text/css" href="pathto/reset.css">
https://storybook.js.org/docs/configurations/add-custom-head-tags/
Hi you could import your reset css in
.storybook/config.jsimport '!style-loader!css-loader!sass-loader!../src/styles/reset.css';
It works! Thanks a lot~
or you can use a custom head tag
<link rel="stylesheet" type="text/css" href="pathto/reset.css">
https://storybook.js.org/docs/configurations/add-custom-head-tags/
It also works! Thanks very much~
Most helpful comment
or you can use a custom head tag
<link rel="stylesheet" type="text/css" href="pathto/reset.css">https://storybook.js.org/docs/configurations/add-custom-head-tags/