Comments (2)
Why doesn't this work? Which error? It's expected to work...
from url-loader.
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)
- Specifying options as a query string does not work anymore
- Regarding the conversion of files to data urls, a less than condition was found to be missing HOT 1
- Corrupted or not proceed image matched multiple module rule simultaneously HOT 2
- How can i use name function with url-loader? HOT 1
- Limit option does not support 'Infinity' or 'Max Value' HOT 2
- Multiple references to the same asset in SASS/CSS `url()` breaks replacement process HOT 4
- [email protected] requires a peer of webpack@^4.0.0 but [email protected] was installed HOT 2
- Allow expressing limit as a function HOT 2
- `esModules: true` outputs `url([object Module])` instead of `url(base64String)` for inline local fonts? HOT 22
- Why url-loader stop supporting nodejs 8?, as webpack 5 still supporting nodejs 8 and higher? HOT 6
- url-loader 3.0.0 creates an erroneous export HOT 2
- Usage with require.context? HOT 1
- Blob Url Support HOT 1
- Images not inlined in Svelte 3 app HOT 1
- option to prefix URLs with `file://` HOT 3
- DataURL images also send network request to public path HOT 7
- [question] Do we have webpack 5 support coming for this lib? HOT 1
- NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag. HOT 1
- Different default limit values in documentation HOT 3
- tree shake do not work with image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from url-loader.