From 4e69358dab7535e1be16dcb5b769ee5a987d662d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20O=E2=80=99Connor?= Date: Thu, 21 Oct 2021 10:36:19 -0400 Subject: [PATCH] Fix the regex used for `test` in the webpack rule The period wasn't getting escaped properly and was matching any character. This fixes #77. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9ac43da..c87e33d 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,7 @@ module.exports = ({ dynamicAssetPrefix = false, ...nextConfig } = {}) => { } config.module.rules.push({ - test: new RegExp(`\.(${nextConfig.fileExtensions.join('|')})$`), + test: new RegExp(`\\.(${nextConfig.fileExtensions.join('|')})$`), // Next.js already handles url() in css/sass/scss files issuer: /\.\w+(?