gulp-css-url-adjuster icon indicating copy to clipboard operation
gulp-css-url-adjuster copied to clipboard

hash in URL

Open michalhisim opened this issue 9 years ago • 2 comments

Some icon font formats needs hash in URL. With append it look like this example:

@font-face {
  font-family: 'Glyphicons Halflings';
  src: url("/fonts/glyphicons-halflings-regular.eot?v5");
  src: url("/fonts/glyphicons-halflings-regular.eot?#iefix?v5")format('embedded-opentype'),
         url("/fonts/glyphicons-halflings-regular.woff?v5")format('woff'),
         url("/fonts/glyphicons-halflings-regular.ttf?v5")format('truetype'),
         url("/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular?v5")format('svg');
}

Sadly there is no way to do it correct like this:

@font-face {
  font-family: 'Glyphicons Halflings';
  src: url("/fonts/glyphicons-halflings-regular.eot?v5");
  src: url("/fonts/glyphicons-halflings-regular.eot?v5#iefix")format('embedded-opentype'),
         url("/fonts/glyphicons-halflings-regular.woff?v5")format('woff'),
         url("/fonts/glyphicons-halflings-regular.ttf?v5")format('truetype'),
         url("/fonts/glyphicons-halflings-regular.svg?v5#glyphicons_halflingsregular")format('svg');
}

It will be cool to have an option to solve this problem correctly.

michalhisim avatar May 16 '15 14:05 michalhisim

:+1: Also got this problem.

netes avatar Jul 06 '15 10:07 netes

I have created a fork version, and add some features, including this one. Check here: gulp-ex-css-url-adjuster

BigMurry avatar Mar 02 '17 04:03 BigMurry