element-plus/play/vite.init.ts
2022-06-12 08:46:10 +08:00

9 lines
193 B
TypeScript

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