Yesterday I lost the backup of my custom jquery lib file, and I just have the min file for it.Is there any way i can convert/decompress the min file back, so that i can do some work on it?
-
You mean you want to change the variable names, which are now just single characters, to some meaningful name using some kind of converter? that is not possible.Mr_Green– Mr_Green2013-08-08 05:10:03 +00:00Commented Aug 8, 2013 at 5:10
-
3I recommend looking harder for something like a cached copy of your code or a soft-deleted file in a Recycle Bin somewhere. Also, in the future, source control synced to an online repository may be advisable.user2357112– user23571122013-08-08 05:12:47 +00:00Commented Aug 8, 2013 at 5:12
2 Answers
Minification often changes the names of variables, combines files, and makes optimizations. A program can't guess at variable names, decide where files should be split, and (shouldn't) make your code perform worse.
Indentation
You can have your code properly indented by using a service like jsbeautifier.
Variable Names
Using an editor, like WebStorm, you can refactor variable names. This means that you select one variable, change the name, and anywhere else it's referenced will also have the new name. It might take a bit.
Splitting Files
This can be done by hand fairly easily. I recommend an editor with tabs to make it less painful.
5 Comments
code .ui - helper - reset { margin: 0; padding: 0; border: 0; outline: 0; line - height: 1.3; text - decoration: none; font - size: 100 % ; list - style: none }.ui - helper - clearfix: before, .ui - helper - clearfix: