Open marcorinck opened 11 years ago
current optimization settings for requireJS turn mangle off, so variable names are not shortened because optimized javascript file contains ALL modules, even pre-minified angularJS which does not work anymore when mangle is off,
However, there is a special config option to exclude only some modules, as answered months ago on my own question on SO but I only saw it today: http://stackoverflow.com/questions/16522216/how-to-exclude-certain-requirejs-files-from-uglifying-optimizing
doc is here: http://requirejs.org/docs/optimization.html#empty
current optimization settings for requireJS turn mangle off, so variable names are not shortened because optimized javascript file contains ALL modules, even pre-minified angularJS which does not work anymore when mangle is off,
However, there is a special config option to exclude only some modules, as answered months ago on my own question on SO but I only saw it today: http://stackoverflow.com/questions/16522216/how-to-exclude-certain-requirejs-files-from-uglifying-optimizing
doc is here: http://requirejs.org/docs/optimization.html#empty