Skip to content

Commit

Permalink
Merge pull request #78 from danoc/patch-1
Browse files Browse the repository at this point in the history
Fix the regex used for `test` in the webpack rule
  • Loading branch information
arefaslani authored Oct 31, 2021
2 parents 3095b20 + 4e69358 commit a5c2de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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+(?<!(s?c|sa)ss)$/i,
exclude: nextConfig.exclude,
Expand Down

0 comments on commit a5c2de9

Please sign in to comment.