Comments (1)
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.
- 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.
- Go to this repository's SASS.sublime-build file and copy all of its contents.
- Paste it into your file.
- Remove the
, "--no-cache"
bit. It's at the end of the line starting with"cmd"
, it should be easy to spot. - 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)
- [Errno 2] No such file or directory HOT 4
- Automatically compile files to css on save HOT 1
- Invalid option : --update error
- Sublime Text 3 HOT 1
- [Errno 20] Not a directory
- Error compiling SCSS inline comments HOT 1
- SystemStackError: stack level too deep HOT 1
- Expanded 'readable' Output HOT 1
- Line comments and line numbers not showing in compiled css HOT 1
- No such file or directory - &
- Want to build both compress and uncompressed.
- Cannot get a build - Path issues HOT 1
- Greedy build key binding HOT 2
- Build not found on Sublime Text3 HOT 3
- Cannot compile a class that is just one hypen, ex. ".- {}"
- Location of config files HOT 1
- SASS Error With Variable Interpolation
- Compile underscored files on save HOT 1
- Syntax Error On Build - Unknown Reason
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 sass-build-sublimetext2.