glob-uglifyjs
Uglify JS files with glob pattern.
Last updated 2 years ago by quatrodev .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glob-uglifyjs 
SYNC missed versions from official npm registry.

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

Argument Type Default Description
-h, --help boolean false Show help.
-p, --pattern [*] string Files glob pattern.
-v, --version boolean false Show version number.
-c, --config string glob-uglifyjs.config.json Path to JSON config file.

[*] - argument required.

Config

Example

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

Properties

Property Type Description
pattern[*] string Files glob pattern.
options Options glob-uglifyjs options.

[*] - property required.

Options

Option Type Default Description
UseMinExt boolean true Use min extensions in output files.
MinifyOptions Object {} UglifyJS minify options. Read more.
OutDir string Redirect output structure to the directory.
RootDir string Specifies the root directory of input files.
RemoveSource boolean false Remove all source files specified by glob pattern.
Debug boolean false Show errors details information.
Silence boolean false Silence all messages in console.
Exclude string | string[] undefined Add a pattern or an array of glob patterns to exclude matches. Read more in node-glob options ignore.
Cwd string process.cwd() Current working directory.

License

Released under the MIT license.

Current Tags

  • 2.0.0-beta.4                                ...           beta (2 years ago)
  • 2.0.0                                ...           latest (2 years ago)

17 Versions

  • 2.0.0                                ...           2 years ago
  • 2.0.0-beta.4                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 1.0.0-alpha-1                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 2
This Month 3
Last Day 1
Last Week 0
Last Month 2
Dependencies (8)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |