Replace Laravel Mix with Bud (#2643)

Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: Ben Word <ben@benword.com>
This commit is contained in:
Kelly Mears
2021-11-21 21:53:01 -08:00
committed by GitHub
parent e533e1bd15
commit 69dfbfc65c
26 changed files with 3943 additions and 5588 deletions

View File

@@ -8,7 +8,7 @@ namespace App;
use WP_Customize_Manager;
use function Roots\asset;
use function Roots\bundle;
/**
* Register the `.brand` selector to the blogname.
@@ -32,5 +32,5 @@ add_action('customize_register', function (WP_Customize_Manager $wp_customize) {
* @return void
*/
add_action('customize_preview_init', function () {
wp_enqueue_script('sage/customizer.js', asset('scripts/customizer.js')->uri(), ['customize-preview'], null, true);
bundle('customizer')->enqueueJs(true, ['customize-preview']);
});