Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Fix production build (yarn build) #1338

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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