Skip to content

Commit

Permalink
Fix broken source maps + remove unnecessary conditionals (#2268)
Browse files Browse the repository at this point in the history
Resolves #2266

Laravel Mix has a bug where source maps are not generated if you do not
specify the source map type (the second argument). This corrects that.

Co-authored-by: Matt Mirus <matt@mattmirus.com>
  • Loading branch information
knowler and mmirus authored Jul 16, 2019
1 parent b9b743d commit 399ab45
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ mix.options({
});

// Source maps when not in production.
if (!mix.inProduction()) {
mix.sourceMaps();
}
mix.sourceMaps(false, 'source-map');

// Hash and version files in production.
if (mix.inProduction()) {
mix.version();
}
mix.version();

0 comments on commit 399ab45

Please sign in to comment.