From ef92158f010e8d441b7df9609f46d00e19379661 Mon Sep 17 00:00:00 2001 From: Jordan Enev Date: Wed, 6 Dec 2017 16:09:52 +0200 Subject: [PATCH] Fix production build (`yarn build`) 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 --- build/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/webpack.config.js b/build/webpack.config.js index f137007d9..35689545b 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -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'), ],