pon-task-ccjs
v1.9.0
Published
Pon task to run Closure Compiler
Downloads
126
Readme
pon-task-ccjs
Pon task to run Closure Compiler
Installation
$ npm install pon-task-ccjs --save
Usage
'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()
Signatures
define(src, dest, options) -> function
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 |
License
This software is released under the Apache-2.0 License.