ahmadawais / create-guten-block

📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
https://Awais.dev/cgb-post
MIT License
3.15k stars 327 forks source link

Create separate build file's for each block #274

Open maheshwaghmare opened 4 years ago

maheshwaghmare commented 4 years ago

I think if there is a inbuilt support for making each block build file separately then this will be awesome improvement.

I notice that if we have created 10 blocks and user used only one of them on a single page then loading remaining block assets are unnecessary. But they are loaded because of we have a single build js and CSS file.

If we create lot of blocks then the build file will be more large.

So, I think if there is a way in which we can create a common and block specific build file's.