File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ const locales = (function () {
33
33
} ) ( )
34
34
35
35
// 编译前执行
36
- const preBuild = ( function ( ) {
37
- // 删除 public/sitemap.xml 文件 ; 否则会和/pages/sitemap.xml.js 冲突。
38
- const sitemapPath = path . resolve ( __dirname , 'public' , 'sitemap.xml' )
39
- if ( fs . existsSync ( sitemapPath ) ) {
40
- fs . unlinkSync ( sitemapPath )
41
- console . log ( 'Deleted existing sitemap.xml from public directory' )
42
- }
43
- } ) ( )
36
+ // const preBuild = (function () {
37
+ // // 删除 public/sitemap.xml 文件 ; 否则会和/pages/sitemap.xml.js 冲突。
38
+ // const sitemapPath = path.resolve(__dirname, 'public', 'sitemap.xml')
39
+ // if (fs.existsSync(sitemapPath)) {
40
+ // fs.unlinkSync(sitemapPath)
41
+ // console.log('Deleted existing sitemap.xml from public directory')
42
+ // }
43
+ // })()
44
44
45
45
/**
46
46
* 扫描指定目录下的文件夹名,用于获取所有主题
You can’t perform that action at this time.
0 commit comments