当我在街区或其他地方做了一些改变的时候。更改不起作用,这是我的gutenberg.php
function MyBlocks()
{
wp_register_script('blocks-js', get_template_directory_uri() . '/build/index.js', array('wp-blocks' , 'wp-editor' , 'wp-components' ));
register_block_type('yusuf/custom-cta', array('editor_script' => 'blocks-js'));
// register_block_type('yusuf/custom-pro', array('editor_script' => 'blocks-js'));
// register_block_type("yusuf/statics" , array('editor_script' => 'blocks-js'));
}
add_action('init', 'MyBlocks');我评论了这些块并仍然显示出来,并将其从build/index.js中删除,并且仍然出现,我想知道为什么会发生在我身上!"NPM启动“已经在运行。
发布于 2022-02-09 12:20:09
都在浏览器缓存中。每次尝试进行任何更改时,都可以使用专用浏览器或清理浏览器缓存。你会发现你的更新看起来很好
https://stackoverflow.com/questions/71016454
复制相似问题