Get menifest.json from file system. Fixes #1048
This commit is contained in:
@@ -20,7 +20,7 @@ function roots_scripts() {
|
|||||||
* Read the asset names from assets-manifest.json
|
* Read the asset names from assets-manifest.json
|
||||||
*/
|
*/
|
||||||
if (WP_ENV !== 'development') {
|
if (WP_ENV !== 'development') {
|
||||||
$get_assets = file_get_contents(get_template_directory_uri() . '/assets/manifest.json');
|
$get_assets = file_get_contents(get_template_directory() . '/assets/manifest.json');
|
||||||
$assets = json_decode($get_assets, true);
|
$assets = json_decode($get_assets, true);
|
||||||
$assets = array(
|
$assets = array(
|
||||||
'css' => '/assets/css/main.min.css' . '?' . $assets['assets/css/main.min.css']['hash'],
|
'css' => '/assets/css/main.min.css' . '?' . $assets['assets/css/main.min.css']['hash'],
|
||||||
|
|||||||
Reference in New Issue
Block a user