Skip to content

Commit

Permalink
fix: generate vue template haven't gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Sep 24, 2022
1 parent e840d78 commit b429c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/rumtime/runtime-vue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const runRuntimeVue = async (option: IViteVueOption) => {
} = option
// 模版复制时过滤的文件
const filterFile = (src: string) => {
if (src.includes('auto-imports.d')
if ((src.includes('auto-imports.d')
|| src.includes('components.d')
|| src.includes('.git')
|| src.includes('.idea'))
|| src.includes('.idea')) && src.includes('.gitignore'))
return false

return true
Expand Down

0 comments on commit b429c35

Please sign in to comment.