Skip to content

Commit

Permalink
Fix a bug with file extensions option
Browse files Browse the repository at this point in the history
  • Loading branch information
arefaslani committed Sep 18, 2020
1 parent dc947bc commit cebcd24
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 @@ -16,7 +16,7 @@ module.exports = (nextConfig = {}) => {
}

config.module.rules.push({
test: new RegExp(`\.(${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 cebcd24

Please sign in to comment.