"wp-scripts build" doesn't copy reneder callback php file from src to build folder if "render" property set in block.json metadata #48696
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Package] Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
Description
I'm developing my custom block plugin using create-block script, when the turn came to render callback file I set "render" metadata in block.json file like it say in documentation: "render": "file:./render.php", I also place file render.php in block folder but when I try to compile plugin whith
npm run build
command, the render.php file doesn't copied to /build/my-block/ folder, actually rest of plugin are compiling normally the only problem is copying. Currently I forced to use special command to force copy PHP files to build folderStep-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Wordpress 6.1.1, built-in Gutenberg, custom theme
Google Chrome
Windows 11
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: