Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-be-ugly

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-be-ugly

Parallel uglification

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
4
Weekly downloads
 
Created
Source

grunt-be-ugly

Parallel uglification

Getting Started

This plugin requires Grunt ~0.4.5

npm install grunt-be-ugly --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-be-ugly');

Usage

grunt.initConfig({
  be_ugly: {
    options: grunt.file.readJSON('path/to/my/build/config.json'),
    app: {
      // Required
      root: 'path/to/my/js',
      // Optional
      buildRoot: 'where/my/built/js/should/go'
    }
  }
});

Options

options

Type: Object

Your Requirejs build configuration settings.

This plugin specifically cares about the following options:

options.uglify2
uglify2: {
  output: {
    beautify: true
  }
}
options.modules

The list of modules that should be built by r.js

target.root (target is called app in the example usage)

Type: String

The path to your JS codebase

target.buildRoot

Type: String

Default: The value supplied to target.root

The path to where you uglified JS should be stored. Defaults to the location of your codebase if not specified – uglifying files in place.

target.files

Optional

Type: String[]

Default: undefined

The list of files to uglify, if you don't want to just bundle the r.js config's modules. This list of files takes priority over the bundles.

You can glob too:

files: [{
  expand: true,
  cwd: 'path/to/my/js',
  src: '**/*.js'
}]

Inspired by the grunt-parallel-uglify project.

Keywords

FAQs

Package last updated on 06 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc