Angularjs minify best practice

前端 未结 7 1599
孤独总比滥情好
孤独总比滥情好 2020-11-22 03:12

I\'m reading http://www.alexrothenberg.com/2013/02/11/the-magic-behind-angularjs-dependency-injection.html and it turned out that angularjs dependency injection has problem

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 03:58

    Like OZ_ said, Use ngmin to minify all angular js file, like directive.js service.js. After that you can use Closure compiler to optimize it.

    ref:

    How to minify angularjs scripts

    Build with YO

提交回复
热议问题