In this video, originally streamed on June 23, 2022, we explore some ways that we can customize the @wordpress/scripts package to better integrate it with an existing project and to add our own custom scripts as part of a single build process,
00:00 Intro.
01:04 Quick look at the @wordpress/scripts package documentation.
02:06 Plugin scaffold overview.
02:46 Default scripts package setup.
03:27 Set up for having multiple blocks.
05:11 Using a custom directory name instead of src.
06:55 Customizing the output directory.
07:25 Configuring the build process to detect blocks and using custom entry points.
18:42 Using the viewScript property in block.json to load a script on the front end only.
27:09 Using the viewScript property with a dynamic block.
Resources:
@wordpress/scripts - https://developer.wordpress.org/block...
@wordpress/create-block - https://developer.wordpress.org/block...
Watch video Customizing your @wordpress/scripts build process | WordPress Tutorial | Custom Block Development online without registration, duration hours minute second in high quality. This video was added by user Ryan Welcher Codes 27 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,08 once and liked it 6 people.