From afaff59f96219b7da1f461a3a8d1f39bdfe6a411 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Tue, 8 Oct 2019 14:28:15 -0400 Subject: [PATCH] Monkeypatch @zeit/next-css@0.2.1-canary.4 (#8996) --- packages/next/build/webpack-config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index 67ec13747c..454f0778ad 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -955,7 +955,11 @@ export default async function getBaseWebpackConfig( // old `css-loader` versions. Custom setups (that aren't next-sass // or next-less) likely have the newer version. // We still handle this gracefully below. - Object.prototype.hasOwnProperty.call(use.options, 'minimize') + (Object.prototype.hasOwnProperty.call(use.options, 'minimize') || + Object.prototype.hasOwnProperty.call( + use.options, + 'exportOnlyLocals' + )) ) ) { return -- GitLab