File tree Expand file tree Collapse file tree
site/plugins/changelog-to-json Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import generateChangelogJson from '../../../src/_common/docs/plugins/changelog-t
77
88const __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' ) ;
1111const changelogPath = path . resolve ( __dirname , '../../../CHANGELOG.md' ) ;
1212
1313export 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 } ,
You can’t perform that action at this time.
0 commit comments