Commit 26196be7 by Moorthy G

fix(next.config): fix broken images that are included in css/scss files

parent 60a93ae7
......@@ -12,9 +12,11 @@ module.exports = {
}
config.module.rules.push({
test: /\.(png|svg|jpg|jpeg|gif|mp3|mp4)$/i,
// Next.js already handles url() in css/sass/scss files
issuer: /\.\w+(?<!(s?c|sa)ss)$/i,
type: 'asset/resource',
generator: {
filename: 'static/[name]-[hash:8][ext]'
filename: 'static/media/[name]-[hash:8][ext]'
}
});
return config;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment