How to use the google-closure-compiler-js.gulp function in google-closure-compiler-js

To help you get started, we’ve selected a few google-closure-compiler-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SpongePowered / SpongeAuth / gulpfile.babel.js View on Github external
"use strict";

import fs from 'fs';
import path from 'path';

import gulp from 'gulp';
import sourcemaps from 'gulp-sourcemaps';
import util from 'gulp-util'
import sass from 'gulp-sass';
import cleanCSS from 'gulp-clean-css';
import moduleImporter from 'sass-module-importer';
import babel from 'gulp-babel';
import merge from 'merge-stream';
import { gulp as closureGulp } from 'google-closure-compiler-js';

const closureCompiler = closureGulp();

var paths = {
  inBase: './spongeauth/static',
  outBase: './spongeauth/static-build',

  styles: '/styles',

  fonts: '/fonts',

  scripts: '/scripts',
  inputScripts: ['u2f/u2f-api.js', 'app.js'],

  images: '/images',

const production = !!util.env.production;


Check, compile, optimize and compress Javascript with Closure-Compiler using Java

Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis