Results 1 to 5 of 5

Thread: 6.5.0 - disable minification of production build?

  1. #1
    Sencha Premium User
    Join Date
    Nov 2016
    Posts
    13

    Default 6.5.0 - disable minification of production build?

    Hello!
    Is there any way to disable minification for production build?

    According to documentation https://docs.sencha.com/cmd/6.5.1/ap...ompressor.html there is "transpileOnly" option but it doent seem to work:

    HTML Code:
    [WRN] Could not set bean property named transpileOnly on options object of type : com.google.javascript.jscomp.CompilerOptions
    Any thoughts?

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Tehran
    Posts
    31

    Default

    change in app.json :

    Code:
        "production": {
            ....
            "compressor": null
        },
    Code:
        "output": {
            ...
            "js": {
              "path": "${build.id}/tse.js",
              "optimize": "false",
              "version": "ES6"
            },
            ...
        },
    Telegram Channel : https://t.me/extjs

  3. #3
    Sencha Premium User
    Join Date
    Nov 2016
    Posts
    13

    Default

    Quote Originally Posted by mrlayeghi View Post
    change in app.json :

    Code:
        "production": {
            ....
            "compressor": null
        },
    Code:
        "output": {
            ...
            "js": {
              "path": "${build.id}/tse.js",
              "optimize": "false",
              "version": "ES6"
            },
            ...
        },
    Thanks!
    But it doesn't work with CMD 6.5, source code remains minified.

  4. #4
    Sencha User
    Join Date
    Dec 2009
    Posts
    3

    Default

    Quote Originally Posted by kot_lex View Post
    Thanks!
    But it doesn't work with CMD 6.5, source code remains minified.
    Hi, try it with appfolder\.sencha\app\defaults.properties file by changing the app.output.js.compress=false setting...

  5. #5

    Default

    Code:
    "properties": {
        "build.compression":"",
        "enable.resource.compression":false,
        //"enable.split.mode": true
    },

Similar Threads

  1. How to turn off minification for production 5.1 app?
    By VirtualGreg in forum Ext 5: Q&A
    Replies: 4
    Last Post: 27 Oct 2016, 1:09 PM
  2. Replies: 1
    Last Post: 10 Feb 2014, 1:44 PM
  3. Architect Production build is NOT for production
    By mark0978 in forum Sencha Architect 3.x: Bugs
    Replies: 15
    Last Post: 16 Dec 2013, 8:19 AM
  4. Disable minification on some files
    By marco.marsala in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 2 Sep 2013, 9:46 AM
  5. Replies: 7
    Last Post: 23 Aug 2012, 9:44 AM

Posting Permissions

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