Open sytelus opened 10 years ago
The only difference between these files, as far as I know, is the minification. You can see the packaging script in the original Knockout repository.
Yes. The difference is that DEBUG
gets set to true
instead of false
. This is handled by the buildDebug
function in the Gruntfile.
I haven't looked into the specifics, but from the KnockoutJS Downloads page:
[The debug build] exposes additional unsupported private APIs.
So yeah, I use the debug version and just set DEBUG = false
.
I've minification of all js done separately so I'd like to reference unminified filed. But I'm confused here if .debug.js is just unminified or has some more things in it. It would be nice to maintain common naming such as .min.js for minified version and just .js for unminified version and .debug.js for code with debugging constructs such as logging.