简体   繁体   中英

Minify a file during rendering in javascript

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://jscompress.com/

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:

http://gruntjs.com/

http://gulpjs.com/

or use webpack to bundle and minimify your website or application:

https://webpack.github.io/docs/

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM