BlackbirdDigital / wp-theme-scaffold

Blackbird's WordPress Theme Scaffold
GNU General Public License v2.0
30 stars 1 forks source link

Custom blocks task outputs every JS file instead of just index #19

Closed cr0ybot closed 2 years ago

cr0ybot commented 2 years ago

The custom blocks task consideres every *.js and *.scss file (and variations) in the root of the block folder as entrypoints. This results in a lot of unnecessary files in the dist folder.

Can the blocks task perhaps read the block.json file and discover the script entrypoints from script, style, editorScript, editorStyle, etc?