Hello All:
We use static resources like html, css, js or json in multiple places to convey information. When we write these files they contain lots of white spaces which can increase the file size as a whole. Here I am going to share a simple tip to reduce the file sizes of static resources.
We will create a gulp application which will use multiple gulp plug-ins to minify the resources.
Following gulp file does all the magic
Complete working application is available here.
Happy coding!!!
We use static resources like html, css, js or json in multiple places to convey information. When we write these files they contain lots of white spaces which can increase the file size as a whole. Here I am going to share a simple tip to reduce the file sizes of static resources.
We will create a gulp application which will use multiple gulp plug-ins to minify the resources.
Following gulp file does all the magic
Complete working application is available here.
Happy coding!!!
Thanks for printing this post. Hope you liked it.
Keep visiting and sharing.
Thanks,
Ashwani.
Keep visiting and sharing.
Thanks,
Ashwani.
Oh thanks for the solution I was looking for!
ReplyDeletevery informative
ReplyDelete