uni-app-mp-html
Version:
uni-app 版本的 mp-html, 基于`mp-html@2.5.0` 构建而成, 默认携带一键复制脚本,和开启一些插件
14 lines (13 loc) • 378 B
JavaScript
/* eslint-disable no-console */
const fs = require("fs-extra")
/**
*
* @param {string} source
* @param {string} destination
* @param {fs.CopyOptions | undefined} options
*/
async function copy(source, destination, options) {
await fs.copy(source, destination, options)
console.log(`[copy success!]\nfrom: ${source}\nto: ${destination}`)
}
module.exports = copy