Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor client side javascript minification and mearging but no mangling variable names

Tags:

meteor

In Meteor, How to minify and merge javascript on the client side; but don't mangle/change variable names/function names?

Is there any bundling option available?

EDIT: I am currently using : meteor bundle with --debug options; but is not doing any minification at all. I am looking to bundle as well as merge all js and cs files.

On changing the variable names my js scripts breaks ! What is the command which meteor uses while bundling the client side js ..is it with uglify.. what are the options i can simply remove the "mangling variable names option"

NOTE: i don't want to use meteor --production or meteor bundle --debug. Since they keep all the files .. i have hell lot of files. And the js files from the packages. I simply don't want this for performance reasons.

like image 672
shrw Avatar asked Jan 15 '14 04:01

shrw


1 Answers

Meteor automatically minifies and bundles your CSS and JS on the client when you run it in production mode:

meteor --production
like image 83
sbking Avatar answered Nov 09 '22 22:11

sbking