From 396e7a0af04068f8a8b931683fc61a0da919e585 Mon Sep 17 00:00:00 2001 From: yudejp Date: Sun, 23 May 2021 15:45:54 +0900 Subject: [PATCH] Update configuration for raw-loader --- next.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/next.config.js b/next.config.js index 6010f21..53916d0 100644 --- a/next.config.js +++ b/next.config.js @@ -8,4 +8,11 @@ module.exports = nextTranslate({ images: { domains: ['mackerel.io'], }, + webpack: function (config) { + config.module.rules.push({ + test: /\.md$/, + use: 'raw-loader', + }) + return config + }, }) \ No newline at end of file