use index.js, not block.js

This commit is contained in:
Ray Elliott 2020-05-10 15:36:13 +00:00
parent f75529402d
commit 112c528ff5
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function ${1:plugin_name}_register_block() {
wp_register_script( wp_register_script(
'${1/_/-/g}-${2:block-name}', '${1/_/-/g}-${2:block-name}',
plugins_url( '$2/build/block.js', __FILE__ ), plugins_url( '$2/build/index.js', __FILE__ ),
$asset_file['dependencies'], $asset_file['dependencies'],
$asset_file['version'] $asset_file['version']
); );