@dawnjs/dn-middleware-copy
v0.2.9
Published
A middleware to copy files
Downloads
4
Readme
@dawnjs/dn-middleware-copy
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
| Name | Type | Default | Description |
| --------- | ------------------------------- | ------- | ------------------------------------------------------------------------------------------------ |
| from | string
| "./"
| Root path of source files, relative to current working directory |
| to | string
| "./"
| Root path of destination files, relative to current working directory |
| files | Record<string, string>
| {}
| Specify key-value pairs corresponding to destination/source and source/destination files pattern |
| direction | string
| <-
| Specify copy direction for files. <-
for right to left, ->
for left to right |
| log | boolean
| true
| Output log |
| dot | boolean
| true
| Whether include dot files while scan files by source glob pattern or not |
| override | boolean
| true
| Whether override exist destination files or not |
| filter | boolean \| string \| Function
| | Process source file's content with custom function |