Angular.module minification bug

前端 未结 8 928
情深已故
情深已故 2020-11-28 03:50

Having the darnedest time trying to figure out why minification is not working.

I have injected via an array object my providers prior the function per numerous sugg

8条回答
  •  不知归路
    2020-11-28 04:05

    Uglify has an option to disable mangling on specific files:

    options: {
      mangle: {
         except: ['jQuery', 'angular']
      }
    }
    

    https://github.com/gruntjs/grunt-contrib-uglify#reserved-identifiers

提交回复
热议问题