-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update wp-scripts and test with WordPress 6.7 #29
Comments
Interestingly, since UK-tides only had one entry point, the build worked without having to create a
Skipping "./build/index.js" listed in "C:/apache/htdocs/wordpress/wp-content/plugins/uk-tides/src/oik-uk-tides/block.json". File does not exist in the "src" directory. |
wp-scripts is now v30.4.0. WordPress is now 6.7 |
UK-tides blocks is currently delivered with one entry point
/build/index.js
.wp-scripts
has been improved considerably. It now supports multiple blocks per plugin.UK tides doesn't need multiple blocks... but I may be moving the JavaScript source to another plugin that performs the build.
So I need to build it the same way as other blocks which do have multiple entry points.
Requirement
Process
npm run packages-update
webpack.config.js
to deliver the UK-tides entry point.block.json
file to refer to the appropriate entry-point and CSSsrc/index.js
as supercededwp_set_script_translations()
for the block's editor-scriptnpm run dev
npm run makepot
,npm run l10n
,npm run makejson
For plugins which have already been changed refer to the code changes in
The text was updated successfully, but these errors were encountered: