feat: init

This commit is contained in:
Morten Olsen
2022-12-06 09:12:53 +01:00
commit 3f5e941446
115 changed files with 13148 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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;
},
});