Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
Load Webpack assets in themes or plugins without manual versioning.
Load Webpack assets in themes or plugins without manual versioning.
Asset Loader provides PHP functions for registering and enqueuing Webpack-generated JavaScript and CSS assets in themes or plugins. It works with both wp-scripts builds and custom Webpack configurations that output a JSON asset manifest.
wp-scripts builds, reads the .asset.php file to extract script dependencies and version numbers, eliminating manual updates.block.json file, without registering new blocks.enqueue_script_asset() and enqueue_manifest_asset() accept optional extra dependencies and custom handles, giving control over loading order and script registration.enqueue_block_editor_assets and wp_enqueue_scripts hooks, covering all asset contexts.No comments yet. Be the first to start the conversation!