1
0
mirror of https://github.com/kremalicious/ipfs.git synced 2024-11-22 01:37:07 +01:00
ipfs/next.config.js

27 lines
571 B
JavaScript
Raw Normal View History

// eslint-disable-next-line no-unused-vars
2019-10-20 01:40:55 +02:00
const withSvgr = (nextConfig = {}, nextComposePlugins = {}) => {
return Object.assign({}, nextConfig, {
webpack(config, options) {
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
options: {
icon: true
}
}
]
})
if (typeof nextConfig.webpack === 'function') {
return nextConfig.webpack(config, options)
}
return config
}
})
}
2020-03-10 03:57:00 +01:00
module.exports = withSvgr()