marcorinck / ngStart

skeleton project for new angular.js projects
MIT License
195 stars 29 forks source link

exclude at least angular from optimized javascript build file #13

Open marcorinck opened 11 years ago

marcorinck commented 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