1.0.1 • Published 3 years ago

tarojs-plugin-copy v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

tarojs-plugin-copy

依赖

taro.js v3+

安装

npm i tarojs-plugin-copy --save -dev

配置

参数类型默认描述
fromPathstring来源路径
outputPathstring输出路径
oncebooleanfalsefalse: 每次编译后执行一次, true: 首次编译结束执行一次
// 配置实例
const config = {
  ...
  plugins: [
    [
      'tarojs-plugin-copy',
      {
        fromPath: path.resolve(__dirname, '../dist'),
        outputPath: path.resolve(process.cwd(), '../outputTest'),
      }
    ]
  ],
  ...
}