library/Helper/CacheBust.php
public static function getRevManifest($childTheme = false)
    {
        $themePath = ($childTheme == true) ? get_stylesheet_directory() : get_template_directory();
        $jsonPath = $themePath . apply_filters('Municipio/Helper/CacheBust/RevManifestPath', '/assets/dist/rev-manifest.json');

        if (file_exists($jsonPath)) {
            return json_decode(file_get_contents($jsonPath), true);
        } elseif (WP_DEBUG) {
            echo '<div style="color:red">Error: Assets not built. Go to ' . $themePath . ' and run gulp. See '. $themePath . '/README.md for more info.</div>';
        }
    }
public static function getRevManifest($childTheme = false)
    {
        $themePath = ($childTheme == true) ? get_stylesheet_directory() : get_template_directory();
        $jsonPath = $themePath . apply_filters('Municipio/Helper/CacheBust/RevManifestPath', '/assets/dist/rev-manifest.json');

        if (file_exists($jsonPath)) {
            return json_decode(file_get_contents($jsonPath), true);
        } elseif (WP_DEBUG) {
            echo '<div style="color:red">Error: Assets not built. Go to ' . $themePath . ' and run gulp. See '. $themePath . '/README.md for more info.</div>';
        }
    }
public static function getRevManifest ( $ childTheme = false ) { $ themePath = ( $ childTheme == true ) ? get_stylesheet_directory ( ) : get_template_directory ( ) ; $ jsonPath = $ themePath . apply_filters ( 'Municipio/Helper/CacheBust/RevManifestPath' , '/assets/dist/rev-manifest.json' ) ; if ( file_exists ( $ jsonPath ) ) { return json_decode ( file_get_contents ( $ jsonPath ) , true ) ; } elseif ( WP_DEBUG ) { echo '<div style="color:red">Error: Assets not built. Go to ' . $ themePath . ' and run gulp. See ' . $ themePath . '/README.md for more info.</div>' ; } }
Decode assets json to array
@param boolean $childTheme Set child or parent theme path (defaults to parent)
@return array containg assets filenames
Decode assets json to array