ahmadawais / create-guten-block

📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
https://Awais.dev/cgb-post
MIT License
3.15k stars 328 forks source link

Any change I make disables existing blocks. #269

Closed michaelslevy closed 4 years ago

michaelslevy commented 4 years ago

Any change I make, even just a CSS rule, invalidates existing instances of the block after npm run build. Is there a way to prevent this?

Michael

ahmadawais commented 4 years ago

That is how Gutenberg is built. To solve it we need hot reloading of blocks in both JavaScript and PJP. For that, I need to spend a good amount of time on this project. I don't have the support to do that. I know it sucks. Hoping to solve it but the WordPress community seldom invests in Developer Tooling which is why it's hard to build with WP + React.