mirror of
https://github.com/seejohnrun/haste-server
synced 2025-07-06 21:12:11 -07:00
Added node modules
This commit is contained in:
parent
ca9d4c18f7
commit
d1e0644a4e
575 changed files with 77900 additions and 6 deletions
17
node_modules/uglify-js/uglify-js.js
generated
vendored
Normal file
17
node_modules/uglify-js/uglify-js.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
//convienence function(src, [options]);
|
||||
function uglify(orig_code, options){
|
||||
options || (options = {});
|
||||
var jsp = uglify.parser;
|
||||
var pro = uglify.uglify;
|
||||
|
||||
var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST
|
||||
ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names
|
||||
ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations
|
||||
var final_code = pro.gen_code(ast, options.gen_options); // compressed code here
|
||||
return final_code;
|
||||
};
|
||||
|
||||
uglify.parser = require("./lib/parse-js");
|
||||
uglify.uglify = require("./lib/process");
|
||||
|
||||
module.exports = uglify
|
Loading…
Add table
Add a link
Reference in a new issue