NAV主题

This commit is contained in:
tangly1024.com
2023-10-18 15:45:45 +08:00
parent c9915ce213
commit ad4507224e
9 changed files with 108 additions and 307 deletions

View File

@@ -91,6 +91,12 @@ module.exports = withBundleAnalyzer({
// })
// }
// 排除所有后缀名为 .md 的文件的编译
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader'
});
// 动态主题:添加 resolve.alias 配置,将动态路径映射到实际路径
config.resolve.alias['@theme-components'] = path.resolve(__dirname, 'themes', THEME)
return config