Norwegian Puffin Movies

    gulp-closurecompiler

    0.1.1 • Public • Published

    gulp-closurecompiler

    The ClosureCompiler.js Gulp Task (port of https://github.com/dcodeIO/grunt-closurecompiler)

    Usage

    First, install gulp-closurecompiler as a dependency:

    npm install gulp-closurecompiler

    Then, add it to your gulpfile.js:

    var gulpCC = require("gulp-closurecompiler");
     
    gulp
    .src( './src/*.js' )
    .pipe(
        gulpCC(
            {
                fileName: 'scripts.min.js'
            },
            {
                // ClosureCompiler.js options here...
            }
        )
    )
    .pipe(
        gulp.dest( './dest/' )
    )

    API

    gulp-closurecompiler( options, gccOptions )

    options.fileName

    Type: String (Required)

    The name of the file that you can want to be created

    gccOptions

    See ClosureCompiler.js options.

    License

    See LICENSE

    Install

    npm i gulp-closurecompiler

    DownloadsWeekly Downloads

    6

    Version

    0.1.1

    License

    none

    Unpacked Size

    5.66 kB

    Total Files

    4

    Last publish

    Collaborators

    • julianxhokaxhiu