fix: remove unused loader config

This commit is contained in:
Timothy Lin 2022-02-19 12:52:51 +08:00
parent 01c180eb4f
commit f29e6068d7

View File

@ -67,19 +67,6 @@ module.exports = withBundleAnalyzer({
]
},
webpack: (config, { dev, isServer }) => {
config.module.rules.push({
test: /\.(png|jpe?g|gif|mp4)$/i,
use: [
{
loader: 'file-loader',
options: {
publicPath: '/_next',
name: 'static/media/[name].[hash].[ext]',
},
},
],
})
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],