Skip to content
Snippets Groups Projects

Fixing Gutenberg with nginx-http-concat

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Erick Hitter
    fix-gutenberg.php 273 B
    <?php
    
    add_filter( 'js_do_concat', function( $do_concat, $handle ) {
        $to_skip = [
            'lodash',
            'underscore',
            'wp-editor',
        ];
    
        if ( in_array( $handle, $to_skip, true ) ) {
            $do_concat = false;
        }
    
        return $do_concat;
    }, 10, 2 );
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment