2.0.0 • Published 8 years ago

glob-uglifyjs v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.
OutDirstringRedirect output structure to the directory.
RootDirstringSpecifies 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.

2.0.0

8 years ago

2.0.0-beta.4

8 years ago

2.0.0-beta.3

8 years ago

2.0.0-beta.2

8 years ago

2.0.0-beta.1

8 years ago

2.0.0-beta

8 years ago

1.0.0

8 years ago

1.0.0-beta.1

8 years ago

1.0.0-alpha-1

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago