is there a way to avoid client side script minification in dev mode?


  • Translator

    Hi,

    Sorry if this is already answered or documented. Tried to fin it on the docs and searched on this forum but haven't been able to find what i'm looking for.

    Is there an option or some way to avoid minification/concatenation of client side scripts in dev mode in order to be able to debug\read the code in an easier manner?

    Thanks in advance.


  • Admin

    Well, in dev mode, it is concatenated only, not minified, so that's a little easier.

    We used to keep files separate, but that ended up causing issues that would only occur on production, so the decision was made to keep dev and production mode similar except for crucial differences (e.g. minified vs not minified).

    As of last year there was an outstanding issue with the version of uglify-js we use, in that there's no .map file generated that we can use. I don't quite know how to resolve that yet... perhaps it has been fixed now.


  • Translator

    Thanks for your reply @julian


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.