Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] Mix() won't throw an exception #20603

Merged
merged 12 commits into from
Aug 20, 2017
10 changes: 6 additions & 4 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,12 @@ function mix($path, $manifestDirectory = '')
$manifest = $manifests[$manifestPath];

if (! isset($manifest[$path])) {
throw new Exception(
"Unable to locate Mix file: {$path}. Please check your ".
'webpack.mix.js output paths and try again.'
);
report(new Exception("Unable to locate Mix file: {$path}. Please check your ".
'webpack.mix.js output paths and try again.'));

if (! app('config')->get('app.debug')) {
return $path;
}
}

return new HtmlString($manifestDirectory.$manifest[$path]);
Expand Down