JavaScript for WordPress › Forums › Gutenberg Development › Enqueueing block assets › Reply To: Enqueueing block assets
April 19, 2018 at 12:55 pm
#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.