This commit is contained in:
tangly1024.com
2024-02-02 16:52:32 +08:00
parent c498717870
commit d2e791c120
4 changed files with 9 additions and 9696 deletions

View File

@@ -93,7 +93,9 @@ module.exports = withBundleAnalyzer({
// })
// }
// 动态主题:添加 resolve.alias 配置,将动态路径映射到实际路径
console.log('加载默认主题', path.resolve(__dirname, 'themes', THEME))
if (!isServer) {
console.log('加载默认主题', path.resolve(__dirname, 'themes', THEME))
}
config.resolve.alias['@theme-components'] = path.resolve(__dirname, 'themes', THEME)
return config
},