Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up sourcemaps for storybook #2053

Closed
gfellerph opened this issue Oct 6, 2023 · 2 comments · Fixed by #2063
Closed

Set up sourcemaps for storybook #2053

gfellerph opened this issue Oct 6, 2023 · 2 comments · Fixed by #2063
Assignees
Labels
enhancement New feature or request ⚙️ setup Setup work for the repository or a new package

Comments

@gfellerph
Copy link
Member

When inspecting styles in storybook, all styles originate from the same, compiled CSS file which is not really helpful for debugging.

image

Can we set up source mapping for storybook to see what sass file stuff is coming from?

@gfellerph gfellerph added enhancement New feature or request ⚙️ setup Setup work for the repository or a new package labels Oct 6, 2023
@imagoiq
Copy link
Contributor

imagoiq commented Oct 9, 2023

Note sure if it's possible:

storybookjs/storybook#19464
storybookjs/storybook#9901 (comment)

@imagoiq imagoiq linked a pull request Oct 10, 2023 that will close this issue
@imagoiq imagoiq self-assigned this Oct 10, 2023
@imagoiq
Copy link
Contributor

imagoiq commented Oct 10, 2023

I've found this issue: vitejs/vite#2830 (and this related documentation: https://vitejs.dev/config/shared-options.html#css-devsourcemap)
CSS sourcemap aren't built by default with Vite. At the moment, you can only build them in dev mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ⚙️ setup Setup work for the repository or a new package
Projects
Development

Successfully merging a pull request may close this issue.

2 participants