angular2.js vs angular2.dev.js

前端 未结 3 1151
天命终不由人
天命终不由人 2021-01-17 18:47

I was wondering about the differences between angular2.js and angular2.dev.js, of course there are more files like: router.dev.js and

3条回答
  •  一整个雨季
    2021-01-17 19:20

    So as per @Bonneville's useful link the pattern would be, during development as "SystemJS loader user", to reference from the index.html the dev scripts:

    • node_modules/angular2/angular2.dev.js,
    • node_modules/angular2/router.dev.js and
    • node_modules/angular2/http.dev.js

    and then for production to swap in the minified scripts:

    • node_modules/angular2/angular2.min.js,
    • node_modules/angular2/router.min.js and
    • node_modules/angular2/http.min.js

提交回复
热议问题