mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
exports.withMarkdown = (nextConfig = {}) => ({
|
|
...nextConfig,
|
|
webpack(config, options) {
|
|
config.module.rules.push({
|
|
test: /\.md$/,
|
|
use: [
|
|
{
|
|
loader: require.resolve("@morten-olsen/markdown-loader"),
|
|
},
|
|
],
|
|
});
|
|
if (typeof nextConfig.webpack === "function") {
|
|
return nextConfig.webpack(config, options);
|
|
}
|
|
|
|
return config;
|
|
},
|
|
});
|