Minification is breaking my AngularJs code

后端 未结 2 750
谎友^
谎友^ 2021-01-05 05:42

I\'m using Cassette which uses the Microsoft Ajax Minifier to minify JS. This minifier renames variables, including variables that have special meaning to Angular, such as <

2条回答
  •  隐瞒了意图╮
    2021-01-05 05:56

    I'm not sure when Cassette Added this, but when you create a bundle you can use AddMinified to indicate that the file is as minified as it can be without breaking it (It won't be minified when it's served).

    That being said, it's much better to use angular's array syntax because smaller files are better!

提交回复
热议问题