Skip to content

Commit

Permalink
Monkeypatch @zeit/next-css@0.2.1-canary.4 (#8996)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Oct 8, 2019
1 parent 5bce442 commit afaff59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afaff59

Please sign in to comment.