use index.js, not block.js
This commit is contained in:
parent
f75529402d
commit
112c528ff5
|
@ -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']
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue