JavaScript for WordPress Forums Gutenberg Development Enqueueing block assets Reply To: Enqueueing block assets

#45409
Zac Gordon
Keymaster

I believe these docs are outdated.

The approach of registering the block on the server side is still being evolved, so I think it’s better and more flexible (and following existing WP conventions) to use enqueue_block_editor_assets and enqueue_block_assets but both approaches should still work I believe.