Merge pull request #400 from timlrx/fix/webpack-loader

fix: remove unused loader config
This commit is contained in:
Timothy
2022-02-19 12:54:40 +08:00
committed by GitHub

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'],