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

Block API Version 3 does not inject CSS modifications #374

Closed
1 task done
dkjensen opened this issue Mar 3, 2024 · 1 comment
Closed
1 task done

Block API Version 3 does not inject CSS modifications #374

dkjensen opened this issue Mar 3, 2024 · 1 comment

Comments

@dkjensen
Copy link

dkjensen commented Mar 3, 2024

Describe the bug

When using "apiVersion": 3 within a block.json, associated styles and editor styles do not inject CSS updates.

Steps to Reproduce

  1. Clone 10up-theme
  2. Modify includes/blocks/example-block/block.json, change to apiVersion to 3
  3. Add a style.css file to the block, register the style within block.json, and import it within index.js.
  4. Run npm run watch, and modify the CSS to test.

Screenshots, screen recording, code snippet

10up-theme.1.mp4

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fabiankaegy
Copy link
Member

@dkjensen Thanks for your report. This is a duplicate of #168

Currently the CSS entry points that get defined via block.json don't support hot module reloading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants