You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

glob-uglifyjs

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-uglifyjs

Uglify JS files with glob pattern.

2.0.0
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

glob-uglifyjs

Uglify JS files with glob pattern.

Installation

$ npm install glob-uglifyjs

Features

  • Uglify js files with node-glob pattern.
  • Remove source files after uglify.

Command line

Usage

$ glob-uglifyjs -h

Arguments

ArgumentTypeDefaultDescription
-h, --helpbooleanfalseShow help.
-p, --pattern [*]stringFiles glob pattern.
-v, --versionbooleanfalseShow version number.
-c, --configstringglob-uglifyjs.config.jsonPath to JSON config file.

[*] - argument required.

Config

Example

{
    "pattern": "/**/*",
    "options": {
        "UseMinExt": false,
        "MinifyOptions": {},
        "OutDir": "dist-min",
        "RootDir": "dist",
        "RemoveSource": false,
        "Debug": false
    }
}

Properties

PropertyTypeDescription
pattern[*]stringFiles glob pattern.
optionsOptionsglob-uglifyjs options.

[*] - property required.

Options

OptionTypeDefaultDescription
UseMinExtbooleantrueUse min extensions in output files.
MinifyOptionsObject{}UglifyJS minify options. Read more.
OutDirstring Redirect output structure to the directory.
RootDirstring Specifies the root directory of input files.
RemoveSourcebooleanfalseRemove all source files specified by glob pattern.
DebugbooleanfalseShow errors details information.
SilencebooleanfalseSilence all messages in console.
Excludestring | string[]undefinedAdd a pattern or an array of glob patterns to exclude matches. Read more in node-glob options ignore.
Cwdstringprocess.cwd()Current working directory.

License

Released under the MIT license.

Keywords

uglify

FAQs

Package last updated on 02 Nov 2017

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