Skip to content

Commit

Permalink
Merge pull request #1 from phaistonian/phaistonian-patch-1
Browse files Browse the repository at this point in the history
compress: false is ignored in production
  • Loading branch information
phaistonian committed Jan 13, 2021
2 parents 86a0ee0 + 21f5069 commit 94c849e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function getStylusOptions(loaderContext, loaderOptions) {
? stylusOptions.resolveURL
: { nocheck: true };

if (!stylusOptions.compress && isProductionLikeMode(loaderContext)) {
if (typeof stylusOptions.compress === 'undefined' && isProductionLikeMode(loaderContext)) {
stylusOptions.compress = true;
}

Expand Down

0 comments on commit 94c849e

Please sign in to comment.