Lines Matching refs:minify

108     --config-file <file>        Read `minify()` options from JSON file.
115 Equivalent to setting `ie: true` in `minify()`
143 Equivalent to setting `v8: true` in `minify()`
149 Equivalent to setting `webkit: true` in `minify()`
383 There is a single high level function, **`minify(code, options)`**,
384 which will perform all minification [phases](#minify-options) in a configurable
385 manner. By default `minify()` will enable the options [`compress`](#compress-options)
389 var result = UglifyJS.minify(code);
394 You can `minify` more than one JavaScript file at a time by using an object
402 var result = UglifyJS.minify(code);
414 var result = UglifyJS.minify(code, options);
427 var result1 = UglifyJS.minify({
430 var result2 = UglifyJS.minify({
448 fs.writeFileSync("part1.js", UglifyJS.minify({
452 fs.writeFileSync("part2.js", UglifyJS.minify({
459 An example of a combination of `minify()` options:
478 var result = UglifyJS.minify(code, options);
488 var result = UglifyJS.minify(code, options);
496 var result = UglifyJS.minify({"foo.js" : "if (0) else console.log(1);"});
503 var result = UglifyJS.minify(code, options);
539 property names across multiple invocations of `minify()`. Note: this is
540 a read/write property. `minify()` will read the name cache state of this
598 var result = UglifyJS.minify({"file1.js": "var a = function() {};"}, {
619 var result = UglifyJS.minify({"file1.js": "var a = function() {};"}, {
630 var result = UglifyJS.minify({"compiled.js": "compiled code"}, {
882 UglifyJS.minify(code).code;
885 UglifyJS.minify(code, { mangle: { reserved: ['firstLongName'] } }).code;
888 UglifyJS.minify(code, { mangle: { toplevel: true } }).code;
1086 var result = UglifyJS.minify(fs.readFileSync("input.js", "utf8"), {
1100 UglifyJS.minify("alert('hello');", {
1112 UglifyJS.minify("alert('hello');", {
1122 ### Using native Uglify AST with `minify()`
1126 var result = UglifyJS.minify(code, {
1142 var result = UglifyJS.minify(ast, {
1200 | d3.js | minify size | gzip size | minify time (seconds) |
1207 To enable fast minify mode from the CLI use:
1211 To enable fast minify mode with the API use:
1213 UglifyJS.minify(code, { compress: false, mangle: true });