gulp-webp-css-fixed

1.1.0 • Public • Published

GULP-WEBP-CSS-FIXED


FEATURES

  • Comments inside CSS rules don't cause error;
  • SVG extension excluded from iteration;

Description

gulp-webp-css by seokirill doesn't have additional type check. It excludes comments between selectors from iteration by checking rule.type, but it doesn't check comments presence inside rules. Therefore in rules with comments, for example, string "border: 1px solid black /* example */" would have typeof undefined and iteration through searching substring in rule (indexOf("background")/indexOf("url")/indexOf(".webp")) leads to error.

Original repository of gulp-webp-css seems to be deleted, so i have to make my own package.


Plan2do

  • rule comments should not move to next line

/gulp-webp-css-fixed/

    Package Sidebar

    Install

    npm i gulp-webp-css-fixed

    Weekly Downloads

    32

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    5.36 kB

    Total Files

    3

    Last publish

    Collaborators

    • grindingeorge