element-plus/play/vite.init.ts

9 lines
193 B
TypeScript
Raw Normal View History

import { existsSync, readFileSync, writeFileSync } from 'fs'
2021-10-06 19:36:30 +08:00
const app = 'src/App.vue'
2022-06-12 08:46:10 +08:00
const example = 'app.example.vue'
2021-10-06 19:36:30 +08:00
if (!existsSync(app)) {
writeFileSync(app, readFileSync(example))
}