Minifying code for PhoneGap App?

后端 未结 5 1281
逝去的感伤
逝去的感伤 2021-02-05 04:08

I am currently starting to build an PhoneGap application, I know the advantages of minifying code for browsers already. However, I was wondering if it was worth minifying my HTM

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 04:36

    This might be a bit late, but if you are still interested in minifying your application's code, I made an NPM package that minifies your Javascript, CSS, and image files called cordova-minify (https://www.npmjs.org/package/cordova-minify).

    My project is also on GitHub, so if you want to contribute and/or see what is under the hood, it's there - https://github.com/alastairparagas/cordova-minify. It's practically a Cordova Hook that calls some NPM package dependencies to do the respective compression.

提交回复
热议问题