
Compiling and Enqueuing Assets in WordPress with @wordpress/scripts
TL;DR: npm install @wordpress/scripts --save-dev, add build/watch/watch:hot scripts to package.json, then auto-register the compiled output in PHP using the .asset.php file it generates. No webpack co...



