You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
305 B
16 lines
305 B
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const src = path.resolve(__dirname, './dist/index.html')
|
|
const dest = path.resolve(__dirname, './index.html')
|
|
|
|
if (fs.existsSync(dest)) {
|
|
fs.unlinkSync(dest)
|
|
}
|
|
|
|
if (fs.existsSync(src)) {
|
|
fs.copyFileSync(src, dest)
|
|
fs.unlinkSync(src)
|
|
}
|
|
|