0.2.9 • Published 2 years ago

@dawnjs/dn-middleware-copy v0.2.9

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

@dawnjs/dn-middleware-copy

npm npm

Usage

build:
  - name: '@dawnjs/dn-middleware-copy'
    log: true
    files:
      ./build/demo1/(1)/(0).(ext): ./demo/**/*.*
      ./build/demo2/: ./demo/**/*.*
    filter: true
  - name: '@dawnjs/dn-middleware-webpack'

Options

NameTypeDefaultDescription
fromstring"./"Root path of source files, relative to current working directory
tostring"./"Root path of destination files, relative to current working directory
filesRecord<string, string>{}Specify key-value pairs corresponding to destination/source and source/destination files pattern
directionstring<-Specify copy direction for files. <- for right to left, -> for left to right
logbooleantrueOutput log
dotbooleantrueWhether include dot files while scan files by source glob pattern or not
overridebooleantrueWhether override exist destination files or not
filterboolean \| string \| FunctionProcess source file's content with custom function