How to use the grunt-contrib-uglify.uglify function in grunt-contrib-uglify

To help you get started, we’ve selected a few grunt-contrib-uglify 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 thanpolas / mantri / lib / mantri-build-vendor.js View on Github external
/**
 * @fileOverview The vendors part of the build operation.
 */

var fs     = require('fs');
var grunt  = require('grunt');
var __     = require('lodash');
var gUglify = require('grunt-contrib-uglify')().uglify.init( grunt );

var helpers= require('./helpers');

var vendorLibs = module.exports = {};

/**
 * Bundles the vendor libraries into one file and minifies them.
 *
 * Currently using uglify.
 *
 * For unknown reasons certain patterns of libs make
 * closure compiler to blow up (litteraly)
 *
 * @param {Object} buildOpts The build options.
 * @param {Object} options The options object.
 * @return {boolean} success or not.

grunt-contrib-uglify

Minify JavaScript files with UglifyJS

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis