I am working on a project in angularJs and I am unable to think of a way in which I minifiy a file during rendering. Is there any way in javascript or angular ? Please help I am a newbie
you have to minimify before, for this you can use plenty of tools online :
https://javascript-minifier.com/
Use js minimify tool directly with node js :
https://github.com/mishoo/UglifyJS2
Use a task runner like gulp or grunt with minimify plugin:
or use webpack to bundle and minimify your website or application:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.