This will require updating our asset enqueueing, as block assets will have a new methodology for enqueueing scripts and styles. This is a good opportunity to refactor the whole scripts-and-styles.php file, as much of the code in there will no longer be required.
Once https://github.com/amnestywebsite/humanity-theme/issues/441 and https://github.com/amnestywebsite/humanity-theme/issues/442 have been completed for all blocks, we can remove our old block code, and move completely to the new directory structure.
This will require updating our asset enqueueing, as block assets will have a new methodology for enqueueing scripts and styles. This is a good opportunity to refactor the whole
scripts-and-styles.php
file, as much of the code in there will no longer be required.