Commit 0bea412
Enable WordPress-controlled CSS loading for Instant Search (#45694)
* Search: Enable WordPress-controlled CSS loading for Instant Search
Changes webpack configuration to disable automatic CSS injection and allow
WordPress to control CSS loading via wp_enqueue_style, making Instant Search
compatible with the WordPress Interactivity API.
Changes:
- Configure MiniCssExtractPlugin with static filenames (no contenthash)
- Disable CSS runtime loading (runtime: false)
- Disable MiniCssWithRtlPlugin (WordPress handles RTL)
- Add css_path to Assets::register_script() for WordPress CSS enqueuing
This ensures CSS loads in <head> before JavaScript hydration, preventing
duplicate loading while maintaining proper cache busting through WordPress
versioning.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* changelog
---------
Co-authored-by: Claude <[email protected]>
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/19246419560
Upstream-Ref: Automattic/jetpack@12366701 parent 165ac32 commit 0bea412
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments