Pon task to extract map files
$ npm install pon-task-map --save
'use strict'
const pon = require('pon')
const map = require('pon-task-map')
async function tryExample () {
let run = pon({
'ui:map': map('public/js', 'public/js', {
pattern: '*.js'
})
})
run('ui:map')
}
tryExample()
Define task
Param | type | Description |
---|---|---|
srcDir | string | Source directory name |
destDir | string | Destination directory name |
options.pattern | string|string[] | File name pattern |
options | Object | Optional settings |
options.watchDelay | number | Delay after watch |
This software is released under the Apache-2.0 License.