16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
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)
|
|
}
|
|
|
|
console.warn('请检查手绘风格、标记插件、编号插件是否启用!!!') |