ext-all-debug.js vs ext-all-dev.js

你离开我真会死。 提交于 2019-12-07 06:46:06

问题


What is the main difference between ext-all-debug.js and ext-all-dev.js?

"ext-all-debug.js" is mainly used for development & debugging.

Using "ext-all-dev.js" will have any advantage?

Please clarify.


回答1:


  • ext-all.js: minified, no docs/comments
  • ext-all-debug.js: non-minified, no docs/comments
  • ext-all-debug-w-comments.js: non-minified, with docs/comments
  • ext-all-dev.js: non-minified, with docs/comments, with console warnings, e.g. if you're using deprecated functions/configs or there are configuration problems. The additional console output in ext-all-dev.js can be really helpful, so I'd recommend it for development.
  • ext-all-debug.js: (or ext-all-debug-w-comments.js) is functionally the same as ext-all.js, allows better debugging since it's not minified. I'd recommend it for testing purposes.
  • ext-all.js: obviously is what you want to use in production, since the file is much smaller than the other files.



回答2:


ext-all-debug.js is not minified, has documentation, but no console output. ext-all-dev.js is not minified, has documentation and console output.

ext-all.js is minified, has no documenation and no console output.




回答3:


the debug version of Ext is not compressed and is a lot easier to read/step through in a debugger. You might also consider using ext-all-debug-w-comments.js.



来源:https://stackoverflow.com/questions/22164500/ext-all-debug-js-vs-ext-all-dev-js

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!