postcss / postcss-url

PostCSS plugin to rebase url(), inline or copy asset.
MIT License
377 stars 60 forks source link

does not seem to inline fonts #133

Open pmnc opened 5 years ago

pmnc commented 5 years ago
  '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;
}
itssumitrai commented 2 years ago

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.

kolezka commented 2 years ago

any updates around it?