Skip to content

Commit

Permalink
Fix production build (yarn build)
Browse files Browse the repository at this point in the history
There is a problem with sourcemaps generation on a production build (`yarn build`). The problem is described at the below link, as the current fix is to, change the default output style to `compact`:
webpack-contrib/sass-loader#351 (comment)
  • Loading branch information
jordan-enev authored and Jordan Enev committed Dec 6, 2017
1 parent ea1cca8 commit ef92158
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ config.module.rules.push({
loader: 'sass-loader',
options: {
sourceMap: project.sourcemaps,
// There is a problem with sourcemaps generation on a production build (`yarn build`).
// The problem is described at the below link, as the current fix is to,
// change the default output style to `compact`:
// https://github.com/webpack-contrib/sass-loader/issues/351#issuecomment-279925341
outputStyle: 'compact',
includePaths: [
inProjectSrc('styles'),
],
Expand Down

0 comments on commit ef92158

Please sign in to comment.