Skip to content

Commit

Permalink
perf(theme): optimize plugin-git default options
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Nov 8, 2024
1 parent 545e483 commit b9f7340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/src/node/plugins/getPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function getPlugins(
plugins.push(nprogressPlugin())
}

if (pluginOptions.git !== false) {
if (pluginOptions.git ?? isProd) {
const excludes = ['home', 'friends', 'page', 'custom', false]
const changelogOptions = isPlainObject(options.changelog) ? options.changelog : {}
plugins.push(gitPlugin({
Expand Down

0 comments on commit b9f7340

Please sign in to comment.