feat: use raw-loader to replace the static markdownExample variable,just use markdown file

This commit is contained in:
tzhangchi
2022-12-28 00:16:08 +08:00
committed by DarkSky
parent 1b2a14aa57
commit 2afa47995b
6 changed files with 55 additions and 63 deletions
+5
View File
@@ -19,6 +19,11 @@ const nextConfig = {
},
webpack: config => {
config.resolve.alias['yjs'] = require.resolve('yjs');
config.module.rules.push({
test: /\.md$/i,
loader: 'raw-loader',
});
return config;
},
images: {