gulp-closure-compiler-service

Gulp plugin to the Google Closure compiler service

MIT 6 个版本
安装
npm install gulp-closure-compiler-service
yarn add gulp-closure-compiler-service
pnpm add gulp-closure-compiler-service
bun add gulp-closure-compiler-service
README

gulp-closure-compiler-service

Gulp plugin to compile JavaScript with the Google Closure compiler service. No Java dependency.

Installation

$ npm install gulp-closure-compiler-service

Usage

var closure = require('gulp-closure-compiler-service');

gulp.task('compile', function() {
  return gulp.src('src/*.js')
    .pipe(closure())
    .pipe(gulp.dest('dist'));
});

Options can be passed to the API:

.pipe(closure({
  language: 'ECMASCRIPT5',
  compilation_level: 'WHITESPACE_ONLY'
}))

License

This software is released under the terms of the MIT license. See LICENSE.

版本列表
0.6.0 2016-01-29
0.5.1 2016-01-24
0.5.0 2014-11-11
0.2.0 2014-08-26
0.1.2 2014-08-06
0.1.1 2014-07-17