From 01d3b2b89d88748cb4c43d54319c88fe06cd75b7 Mon Sep 17 00:00:00 2001 From: Hyeon Kim Date: Tue, 28 Jul 2020 06:54:09 +0900 Subject: [PATCH] Support Webpack v5 Condition type `{ test: Condition }` is not supported anymore Reference: https://github.com/webpack/webpack/pull/10557 --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 76bb166..ebd7f64 100644 --- a/index.js +++ b/index.js @@ -12,10 +12,8 @@ module.exports = (nextConfig = {}) => { config.module.rules.push({ test: /\.(jpe?g|png|svg|gif|ico|webp|jp2)$/, - issuer: { - // Next.js already handles url() in css/sass/scss files - test: /\.\w+(?