Skip to content

Commit

Permalink
Merge pull request #41 from simnalamburt/webpack-5
Browse files Browse the repository at this point in the history
Support Webpack v5
arefaslani authored Jul 28, 2020

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
2 parents b19bc19 + 01d3b2b commit ed28bd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -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+(?<!(s?c|sa)ss)$/i,
},
// Next.js already handles url() in css/sass/scss files
issuer: /\.\w+(?<!(s?c|sa)ss)$/i,
exclude: nextConfig.exclude,
use: [
{

0 comments on commit ed28bd8

Please sign in to comment.