minify - Minimizing css files -


i want know how css files can minimized. currently, using external sites css minifier compress css files. however, after removing whitespaces, comments, etc, file sizes reduced 10-15%. how frameworks bootstrap manage make minimized versions kilobytes.

as example, css is:

body {     background-color: #ff0; } 

the reduction goes 28 bytes 22 bytes other css files have lot more characters still smaller this.

actually minifying code means it's remove thing code

  • white space characters
  • new line characters
  • comments
  • block delimiters

it reduces amount of code has transferred on web , speed site load fastly.but unreadable format.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

Add a dynamic header in angular 2 http provider -