Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
398 stars 53 forks source link

Block enqueue assets #256

Closed chrisbakr closed 3 weeks ago

chrisbakr commented 3 weeks ago

I'm enqueuing block assets with the following method:

public function assets($block) { bundle('blocks/HeroBlock')->enqueue(); }

The assets are loaded but inside WP admin with Sage10 the editor.js is not loaded anymore. Also it has a different behaviour in dev and build mode.

Log1x commented 3 weeks ago

You're going to have to Google acf composer blocks bud discourse or something and just research the multitude of different threads that have come up to configure Bud to handle this situation along with it's Runtime. I value my sanity too much to do something like this so I have no examples to share.