Skip to content

realglobe-Inc/pon-task-ccjs

Repository files navigation

pon-task-ccjs

Build Status npm Version JS Standard

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.

Links