element-plus/play/vite.init.ts
2022-03-25 15:35:56 +08:00

9 lines
189 B
TypeScript

import { existsSync, readFileSync, writeFileSync } from 'fs'
const app = 'src/App.vue'
const example = 'app.example'
if (!existsSync(app)) {
writeFileSync(app, readFileSync(example))
}