-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
scope page styles in vue templates using style scoped #34571
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
Open
nitzan-treg
wants to merge
1
commit into
storybookjs:next
Choose a base branch
from
nitzan-treg:fix/23862-bug-react-storybook-vite-example-compone
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 212
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 120
🏁 Script executed:
# Check the structure of rendererAssets to understand how templates are organized ls -la code/lib/create-storybook/rendererAssets/Repository: storybookjs/storybook
Length of output: 291
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 321
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 154
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 7330
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 122
🏁 Script executed:
# Check the common rendererAssets directory contents find code/lib/create-storybook/rendererAssets/common -type fRepository: storybookjs/storybook
Length of output: 1400
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 47
🏁 Script executed:
# Read baseGenerator.ts to see how assets are copied cat code/lib/create-storybook/src/generators/baseGenerator.tsRepository: storybookjs/storybook
Length of output: 10036
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 185
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 47
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 127
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 93
🏁 Script executed:
# Read the copyTemplateFiles function in helpers.ts cat code/core/src/cli/helpers.tsRepository: storybookjs/storybook
Length of output: 7872
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 308
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 95
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 47
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 133
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 114
🏁 Script executed:
Repository: storybookjs/storybook
Length of output: 225
Fix factual error about template count and confirm orphaned file issue.
There are two (not four) Vue3
Page.vuetemplates, and neither imports./page.css. However, the concern about orphaned files is valid:page.cssis still being copied to all scaffolded projects via thecommonAssetsDirmechanism incopyTemplateFiles()(helpers.ts), including Vue3 projects where it remains unused. Other renderers (HTML, React, Svelte, Web-Components) still importpage.css, but it should be removed fromrendererAssets/common/page.cssand either deleted or moved to renderer-specific asset directories to avoid copying unused files to Vue3 projects.🤖 Prompt for AI Agents