Myvideo

Guest

Login

Customizing your @wordpress/scripts build process | WordPress Tutorial | Custom Block Development

Uploaded By: Myvideo
1 view
0
0 votes
0

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 to load a script on the front end only. 27:09 Using the viewScript property with a dynamic block. Resources: @wordpress/scripts - @wordpress/create-block -

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later