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

    Default

    Ok, so some digging revealed that Cmd 6.7 has a new compressor: Closure. However, according to this link:
    https://docs.sencha.com/cmd/6.7.0/gu..._level_support

    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:
    Code:
    "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
    Location
    Cincinnati, Ohio
    Posts
    10

    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
  •