Giter VIP home page Giter VIP logo

Comments (2)

sokra avatar sokra commented on May 31, 2024

Why doesn't this work? Which error? It's expected to work...

from url-loader.

jwall avatar jwall commented on May 31, 2024

This is the error:

GET data:application/font-woff;base64,d09GRgABAAAAAUcwABEAAAACKPwAAQAAAAAAAAAAA…0AS7AIUFixAQGOWbFGBitYIbAQWUuwFFJYIbCAWR2wBitcWFmwFCsAAAABU3PG6QAA?v=4.1.0 net::ERR_INVALID_URL 

and you get it for all of the various font types. If you remove the ?v=4.1.0 then the error doesn't happen.

So, again (in less):

@font-face {
  font-family: 'FontAwesome';
  src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?v=4.1.0')";
  src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&?v=4.1.0') format('embedded-opentype')",
    ~"url('@{fa-font-path}/fontawesome-webfont.woff?v=4.1.0') format('woff')",
    ~"url('@{fa-font-path}/fontawesome-webfont.ttf?v=4.1.0') format('truetype')",
    ~"url('@{fa-font-path}/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular') format('svg')";
//  src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
  font-weight: normal;
  font-style: normal;
}

doesn't work, but

@font-face {
  font-family: 'FontAwesome';
  src: ~"url('@{fa-font-path}/fontawesome-webfont.eot')";
  src: ~"url('@{fa-font-path}/fontawesome-webfont.eot?#iefix') format('embedded-opentype')",
    ~"url('@{fa-font-path}/fontawesome-webfont.woff') format('woff')",
    ~"url('@{fa-font-path}/fontawesome-webfont.ttf') format('truetype')",
    ~"url('@{fa-font-path}/fontawesome-webfont.svg') format('svg')";
//  src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
  font-weight: normal;
  font-style: normal;
}

does. And the error for each request is: net::ERR_INVALID_URL.

Let me know if I can provide more info to help solve this one.

from url-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.