Closed bph closed 1 year ago
@ryanwelcher post a preliminary outline in this comment
I'd probably start with the relationship between the @wordpress/scripts package and the [DependencyExtractionPlugin](https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin) to clarify: Why developers can use the import syntax without needing to npm install any @wordpress/* packages when using the build processes provided by the @wordpress/scripts package. Where the index.asset.php file comes from and what purpose it serves. Then I'd most likely look at the @wordpress/scripts package, explain how it works out of the box and then look at some examples on how to extend/modify the webpack configuration to : - Add additional entry points - Modify the entry point where block are stored - Look at custom output paths - Also a standardized file structure for blocks (within a plugin) would help us This could be addressed by talking about the @wordpress/create-block package as it provides a suggested structure, but would that be better suited as a separate article where we could also talk about custom templates?
Draft is (finally) ready for review - https://docs.google.com/document/d/1qsfWjkWyAyRcoLHaEM8WelDSrXhhzVZXOnwjKcxPBD0/edit#
Got a couple of things on my plate today. Can I look early-ish tomorrow?
This is ready for 2nd review - https://developer.wordpress.org/news/?p=1226&preview=1&_ppp=305a6df22c
@marybaum do you think you'll have some time to review the post today?
Omg thank you for saying something! Absolutely!... from my phoneOn Apr 24, 2023, at 8:30 AM, Ryan Welcher @.***> wrote: @marybaum do you think you'll have some time to review the post today?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Done!
@ryanwelcher seems you are ready to publish! ✅
Here is the pre-publish checklist
Post was published by @ryanwelcher How webpack and WordPress packages interact
Discussed in https://github.com/WordPress/developer-blog-content/discussions/15