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...
Смотрите видео Customizing your @wordpress/scripts build process | WordPress Tutorial | Custom Block Development онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Ryan Welcher Codes 27 Июнь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,088 раз и оно понравилось 66 людям.