GithubHelp home page GithubHelp logo

import once about sassc-rails HOT 7 CLOSED

sass avatar sass commented on August 19, 2024
import once

from sassc-rails.

Comments (7)

bolandrm avatar bolandrm commented on August 19, 2024

Hey. You're correct - this won't work with sassc-rails. This could probably exist as a separate gem. It might even be simpler, since we're not doing any caching with sassc-rails.

I don't immediately need this, so i'm going to mark it as needs-contributor. Someone is welcome to work on this.

from sassc-rails.

pkmiec avatar pkmiec commented on August 19, 2024

Thanks. I will look into it. Perhaps I can come up with a separate gem solution for sassc-rails.

from sassc-rails.

pkmiec avatar pkmiec commented on August 19, 2024

I have written the initial version: http://github.com/appfolio/sassc-import_once. However, there seems to be an issue with libsass which prevents "import once" type of functionality, sass/libsass#1262.

from sassc-rails.

rubenswieringa avatar rubenswieringa commented on August 19, 2024

@pkmiec can you confirm that the breadth-first/depth-first issue has been solved as stated in sass/libsass#1262?

And I noticed your gem isn't available through rubyforge yet, is there any more work that needs to be done on it?

from sassc-rails.

pkmiec avatar pkmiec commented on August 19, 2024

I'm on vacation for the next week. I can look into it when I get back.

from sassc-rails.

rubenswieringa avatar rubenswieringa commented on August 19, 2024

Cool, let me know :)

from sassc-rails.

pkmiec avatar pkmiec commented on August 19, 2024

@rubenswieringa

Indeed, the issue is fixed. Hooray! I've updated the gem to depend on sassc ~> 1.8 and enabled additional tests. The first version of the gem is now available on rubygems.

I've yet to use this on my own project, so let me know if it work / doesn't work for you.

from sassc-rails.

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.