How to bundle blocks with Webpack and @wordpress/scripts in WordPress
Introduction This tutorial explains, in exhaustive detail, how to bundle Gutenberg blocks for WordPress using Webpack together with the official @wordpress/scripts package. It covers project layout, installation, single-block and multi-block workflows, handling styles and assets, how to leverage block.json, automatic asset manifest usage, customizing Webpack when you need control, code splitting, internationalization, debugging tips, production […]