问题
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 asext-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