Reworks asset revving

fixes https://github.com/roots/roots/issues/1266
This commit is contained in:
Austin Pray
2015-01-19 15:15:09 -06:00
parent 7016d92f07
commit c6a0f6eab9
4 changed files with 127 additions and 50 deletions

View File

@@ -22,7 +22,7 @@ function asset_path($filename) {
return get_template_directory_uri() . '/dist/' . $filename;
}
$manifest_path = get_template_directory() . '/dist/rev-manifest.json';
$manifest_path = get_template_directory() . '/dist/assets.json';
if (file_exists($manifest_path)) {
$manifest = json_decode(file_get_contents($manifest_path), true);