Allow revved production files on dev environment

This commit is contained in:
Colin Duwe
2015-05-05 16:49:49 -07:00
parent 067927f391
commit 999adc6466

View File

@@ -58,7 +58,7 @@ function asset_path($filename) {
$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];
} else {
return $dist_path . $directory . $file;