Does it make sense to minify code used in NodeJS?

前端 未结 4 1437
礼貌的吻别
礼貌的吻别 2020-11-30 01:35

I was wondering, since Clojure Compiler and UglifyJS not only optimize code for size but also for performance (although I think size is the main priority), would my node.js

4条回答
  •  庸人自扰
    2020-11-30 02:26

    I created a nodejs cli which generates a new app with some pre-defined classes. I think in this case, it makes sense to minify the base code. Because you want to allow the developer to use it, but not modify it (or at least make it very hard to do). This way I would be pushing the developer to download the new version and not update the class within the app.

提交回复
热议问题