rbtech / css-purge

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.
http://rbtech.github.io/css-purge
MIT License
125 stars 19 forks source link

Purge removes browser prefixed @keyframe rules #11

Closed JoshuaSoileau closed 6 years ago

JoshuaSoileau commented 9 years ago

When I run css-purge -i styles.css -o styles.css -w

My output for some @keyframe rules goes from:

@-webkit-keyframes tooltip-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-moz-keyframes tooltip-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-ms-keyframes tooltip-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes tooltip-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

to

@keyframes tooltip-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes tooltip-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes tooltip-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes tooltip-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

Is this a setting I have incorrect in my parameters?

Is there a way to get css-purge to ignore keyframe rules?

AndrewEQ commented 7 years ago

Hey Josh, I'm taking some time out to work on a new version, will take this into consideration ;)

AndrewEQ commented 6 years ago

We have lift off! :)

http://rbtech.github.io/css-purge