Pon task to run Closure Compiler
$ npm install pon-task-ccjs --save
'use strict'
const pon = require('pon')
const ccjs = require('pon-task-ccjs')
async function tryExample () {
let run = pon({
'production:cc': ccjs('public/bundle.js', 'public/bundle.cc.js')
})
run('production:cc')
}
tryExample()
Define task
Param | type | Description |
---|---|---|
src | string | Source file path |
dest | string | Destination file path |
options | Object | Optional settings |
options.level | string | Compile level |
options.memory | string | Java memory size |
This software is released under the Apache-2.0 License.