Skip to content

Commit e331ce1

Browse files
committed
fix: change the log output path to the _site folder
1 parent 8672836 commit e331ce1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

site/plugins/changelog-to-json/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import generateChangelogJson from '../../../src/_common/docs/plugins/changelog-t
77

88
const __dirname = dirname(fileURLToPath(import.meta.url));
99

10-
const outputPath = path.resolve(__dirname, '../../dist/changelog.json');
10+
const outputPath = path.resolve(__dirname, '../../../_site/changelog.json');
1111
const changelogPath = path.resolve(__dirname, '../../../CHANGELOG.md');
1212

1313
export default function changelog2Json() {
@@ -25,6 +25,7 @@ export default function changelog2Json() {
2525
// 生产构建时写入物理文件
2626
if (process.env.NODE_ENV === 'production') {
2727
const json = await generateChangelogJson(changelogPath, 'mobile');
28+
console.log('----', outputPath);
2829
await promises.writeFile(outputPath, JSON.stringify(json));
2930
}
3031
},

0 commit comments

Comments
 (0)