Results 1 to 3 of 3

Thread: Retaining comments in debug version of package

  1. #1

    Default Retaining comments in debug version of package

    How can I retain the code comments in the debug version of my package? I'm trying to use 'MyPackage-debug.js' as the input to JSDuck in order to generate HTML documentation (yes, I know JSDuck is no longer supported, but its really my only option).

    Currently I run 'sencha package build', and my 'MyPackage-debug.js' has all comments stripped out.

    I am using Sencha Cmd v6.7.0.67

  2. #2


    Ok, so some digging revealed that Cmd 6.7 has a new compressor: Closure. However, according to this link:

    My only options are: 'whitespace', 'simple', and 'advanced'. The problem is...ALL of those options remove comments. I cannot find a way to disable compression. I've tried the following settings in my package.json:
    "compressor": false
    "compressor": "none"
    "compressor": {
        "type": "none"
    "compressor": {
        "type": "closure",
        "compression": false
    "compressor": {
        "type": "closure",
        "compression": "none"
    None seem to work. Any suggestions? Anyone? Bueller?

    Also, if there is a way, how can I do it for the -debug version only?

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Cincinnati, Ohio

    Default Any solution to this issue?

    I would like to also retain comments in testing builds - thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts