storybook-addon-html icon indicating copy to clipboard operation
storybook-addon-html copied to clipboard

CSS is being minified on build-storybook

Open calebsmithdev opened this issue 4 years ago • 2 comments

Hey there! I've been battling with this for a bit and I am stumped on how to move forward. When we are running the storybook in development, all of our code looks great in the HTML addon and looks as clean as we want it. On build-storybook, the CSS is shrunk down to one line and we have no control of it. This only seems to be impacting the CSS. Example:

Screen Shot 2021-10-25 at 3 49 03 PM

Any tips on how we can configure the addon to show the CSS whitespace?

calebsmithdev avatar Oct 25 '21 20:10 calebsmithdev

Hi @calebsmithdev! Were you able to resolve this?

jeanfredrik avatar Sep 27 '22 08:09 jeanfredrik

Hey! We decided it was an acceptable problem and just made it clear to the team to format the CSS separately on their own, as needed.

calebsmithdev avatar Sep 28 '22 18:09 calebsmithdev

Let me know if you have the same issue after upgrading to version 5 of the addon. I'll close this for now.

jeanfredrik avatar Nov 14 '22 15:11 jeanfredrik