postcss-url icon indicating copy to clipboard operation
postcss-url copied to clipboard

does not seem to inline fonts

Open pmnc opened this issue 6 years ago • 2 comments

  'postcss-url': [
    {
      filter: 'font/**/*.(woff|woff2)',
      url: 'inline',
      fallback: 'rebase',
      maxSize: 10000,
      encodeType: 'base64',
      assetsPath: '../stylesheets/fonts'
    },

does not inline in base 64 ! I got :

@font-face {
    font-family: 'OpenSansLightweight';
    src: url(/vstatic/0/javascripts/../fonts/open-sans-lightweight-15cd988172e549b38ccea9b640c70bbc.woff);
    font-weight: normal;
    font-style: normal;
}

pmnc avatar Feb 12 '19 16:02 pmnc

Also doesn't inline .cur files for custom cursors. I checked that the file.mimetype for .cur file is not present. Might be similar problem for font files.

itssumitrai avatar Feb 28 '22 18:02 itssumitrai

any updates around it?

kolezka avatar Mar 13 '22 23:03 kolezka