Allow revved production files on dev environment
This commit is contained in:
@@ -58,7 +58,7 @@ function asset_path($filename) {
|
|||||||
$manifest = new JsonManifest($manifest_path);
|
$manifest = new JsonManifest($manifest_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WP_ENV !== 'development' && array_key_exists($file, $manifest->get())) {
|
if (array_key_exists($file, $manifest->get())) {
|
||||||
return $dist_path . $directory . $manifest->get()[$file];
|
return $dist_path . $directory . $manifest->get()[$file];
|
||||||
} else {
|
} else {
|
||||||
return $dist_path . $directory . $file;
|
return $dist_path . $directory . $file;
|
||||||
|
|||||||
Reference in New Issue
Block a user