mirror of
https://github.com/oceanprotocol/ipfs
synced 2024-11-25 11:28:41 +01:00
Matthias Kretschmann
caf5978143
* remove @zeit/next-css (built into Next.js now) * closes #6 * closes #7 * closes #8
29 lines
620 B
JavaScript
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())
|