1
0
mirror of https://github.com/oceanprotocol/ipfs synced 2024-11-25 03:20:16 +01:00
ipfs/next.config.js
Matthias Kretschmann caf5978143
package updates
* remove @zeit/next-css (built into Next.js now)
* closes #6
* closes #7
* closes #8
2020-01-28 10:57:52 +01:00

29 lines
620 B
JavaScript

const withMDX = require('@next/mdx')()
// eslint-disable-next-line no-unused-vars
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
}
})
}
module.exports = withSvgr(withMDX())