I’m not sure if I’m just doing something wrong with the latest Roots version but I’m getting the following error when I attempt to load any page with a fresh install of Roots 7.0.0.
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (scripts.js, line 0) http://mysite.dev/wp-content/themes/my-theme/assets/js/scripts.js
I’m not using Bedrock in this case and I have added
define('WP_ENV', 'development'); to my wp-config.php file. I have verified that the scripts.js file doesn’t exist and I have grunt running via
I notice that there is a line in lib/scripts.php that sets the js value in the $assets array to
'js' => '/assets/js/scripts.min.js' . '?' . $assets['assets/js/scripts.min.js']['hash'], but only if the WP_ENV is set to development.
I tried just modifying my _main.js file to trigger a recompile for grunt and perhaps generate the scripts.js file but it doesn’t. Anyone know what’s going on here?