Skip to content

Commit

Permalink
will return the mix path if debug is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
adampatterson committed Aug 17, 2017
1 parent d3e5ab6 commit 0d450fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,10 @@ function mix($path, $manifestDirectory = '')
if (! isset($manifest[$path])) {
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

0 comments on commit 0d450fb

Please sign in to comment.