WordPress/wp-includes/blocks/file
gziolo 327852393a Build: Split packages and blocks to their webpack configs
It aligns with the changes proposed added in Gutenberg: https://github.com/WordPress/gutenberg/pull/33293.

The idea here is to split the growing webpack config into two parts: blocks and  packages.

We need to add handling for JavaScript files that are going to be used with blocks on the frontend. They didn't work quite well with the current setup for entry points created for packages.

As part of the effort, it adds support for `viewScript` in `block.json` metadata file that is later translated to `$view_script` in `WP_Block_Type` class and exposed as `view_script` from the REST API endpoint for block types.

Props youknowriad, desrosj, aristath.
Fixes #53690.


Built from https://develop.svn.wordpress.org/trunk@51501


git-svn-id: http://core.svn.wordpress.org/trunk@51112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 10:06:59 +00:00
..
block.json Block Editor: Update the packages with a number of fixes targeted for Beta 4. 2021-06-25 15:52:22 +00:00
editor-rtl.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
editor-rtl.min.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
editor.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
editor.min.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
style-rtl.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
style-rtl.min.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
style.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
style.min.css Editor: Enqueue script and style assets only for blocks present on the page 2021-05-11 09:43:08 +00:00
view.asset.php Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00
view.js Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00
view.min.asset.php Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00
view.min.js Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00