Comments (7)
For reference, the following is a sample of the output when run on OSX & Linux
@font-face {
font-family: 'OpenSans-Regular-webfont';
src: url('../fonts/OpenSans-Regular-webfont.eot');
...
}
And the following is produced on windows:
@font-face {
font-family: 'OpenSans-Regular-webfont';
src: url('..\fonts\OpenSans-Regular-webfont.eot');
...
}
The consequence of this is that the browser escapes the backslash and everything fails horribly.
from node-sass-asset-functions.
I also did a quick test this morning with path-posix in place of path.
The output was what I expected, though I only tested image-url and font-url, not the others.
from node-sass-asset-functions.
path-posix
seems too much overhead. I've simply replaced the backslash in a http path with a forward slash: 7b0d107. Does that work for you?
from node-sass-asset-functions.
And thanks for your report! I'm not using windows so I wouldn't find out about this on my own
from node-sass-asset-functions.
Thanks for the reply, and no problem.
Im sure this will work, but would like to verify first thing Monday morning. (Assuming you haven't already tested the fix on win).
Thanks again.
from node-sass-asset-functions.
@koenpunt This fix addresses the issue for me.
Looking forward to the release.
Thanks again!
from node-sass-asset-functions.
Released version 0.0.9
from node-sass-asset-functions.
Related Issues (11)
- Support synchronous functions
- node-sass v4 compatibility HOT 13
- Tests stuck HOT 1
- Support `url()` syntax for asset hashing
- image-width/height support for SVG with only viewBox
- Supporting option for dart-sass ? ( or drop node-sass as dependency ) HOT 3
- inline-image throws off sourcemaps HOT 1
- don't support relative_assets optional? HOT 1
- Allow relative assets HOT 2
- Test/Handle errors
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 node-sass-asset-functions.