Git Product home page Git Product logo

Comments (1)

wi0lono avatar wi0lono commented on July 17, 2024

Edit: Before trying this, make sure you have installed Sass, and that it's accessible from the command line. If not, ignore everything below and make sure it's visible from there.

TLDR: This package was made for Ruby Sass which not supported anymore, so you'll have to copy the source into your own build-system and remove the --no-cache option from the sublime-build file.

Step-By-Step Solution

I know this is a bit late, but I've just spent four soul-crushing hours figuring out the solution to this really easy problem, and I don't want anyone else to go through the same thing.

The problem

If you're facing this problem, you've installed Dart Sass, which is a good thing. Ruby Sass isn't supported anymore. Unfortunately, this package doesn't directly work with Dart Sass.

Basically, this package contains sublime-build files, which contain executable commands to convert sass to css. Ruby Sass had a command line option called --no-cache which is hard coded into this package's compilation commands. Long story short, Dash Sass doesn't support this flag, so we have to remove it.

How to solve it

Basically, you'll have to make your own build file without the --nocache flag. This is easy.

  1. In Sublime, go to Tools -> Build System -> New Build System. This should create a new file called untitled.sublime-build, with some default code. Delete it.
  2. Go to this repository's SASS.sublime-build file and copy all of its contents.
  3. Paste it into your file.
  4. Remove the , "--no-cache" bit. It's at the end of the line starting with "cmd", it should be easy to spot.
  5. Save your file as SASS.sublime-build in the default location suggested.

That's it. You're all good to go. Use Ctrl + B to build.

You should be able to follow the exact same process for the SASS - Compressed.sublime-build file if you want compressed css output, but if you don't know what compressed css is, you probably don't need it.

PS: Consider installing this package, which builds your css file automatically every time you save.

from sass-build-sublimetext2.

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.