-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Build ToolingIssues or PRs related to build toolingIssues or PRs related to build tooling
Description
Description
Some packages import compiled CSS files, for example, the edit-site package imports the following CSS file:
gutenberg/packages/edit-site/src/style.scss
Lines 4 to 7 in 2aaacad
| @use "@wordpress/admin-ui/build-style/style.css" as admin-ui; | |
| @use "@wordpress/dataviews/build-style/style.css" as dataviews; | |
| @use "@wordpress/fields/build-style/style.css" as fields; | |
| @use "@wordpress/global-styles-ui/build-style/style.css" as global-styles-ui; |
This can be a bit confusing during development, as when a dependency style is recompiled, the dependent package is not recompiled.
cc @youknowriad
Step-by-step reproduction instructions
Below is one way to reproduce the problem.
npm run dev- Make changes to the
packages/global-styles-ui/src/style.scssfile and save it.- ✅ The
packages/global-styles-ui/build-style/style.cssfile will be updated immediately. - ❌ The
packages/edit-site/build-style/style.cssfile will not be updated. - ❌ The
build/styles/edit-site/style.cssfile will not be updated.
- ✅ The
- Simply resave the
packages/edit-site/src/style.scssfile.- ✅ The
packages/edit-site/build-style/style.cssfile will not be updated. - ✅ The
build/styles/edit-site/style.cssfile will not be updated.
- ✅ The
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Build ToolingIssues or PRs related to build toolingIssues or PRs related to build tooling