Coder Social home page Coder Social logo

Comments (7)

twilczak avatar twilczak commented on June 14, 2024

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.

twilczak avatar twilczak commented on June 14, 2024

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.

koenpunt avatar koenpunt commented on June 14, 2024

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.

koenpunt avatar koenpunt commented on June 14, 2024

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.

twilczak avatar twilczak commented on June 14, 2024

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.

twilczak avatar twilczak commented on June 14, 2024

@koenpunt This fix addresses the issue for me.
Looking forward to the release.
Thanks again!

from node-sass-asset-functions.

koenpunt avatar koenpunt commented on June 14, 2024

Released version 0.0.9

from node-sass-asset-functions.

Related Issues (11)

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.