Questions tagged [libsass]

Libsass is a SASS pre-processing language for CSS compiled in C instead of Ruby. It allows you to write cleaner style-sheets and makes collaboration on your CSS a breeze. Libsass is know faster, but its development is a bit delayed.

Sass is a pre-processing language for CSS. It allows you to write cleaner style-sheets and makes collaboration on your CSS a breeze.

131 questions
108
votes
4 answers

How to compile or convert sass / scss to css with node-sass (no Ruby)?

I was struggling with setting up libsass as it wasn't as straight-forward as the Ruby based transpiler. Could someone explain how to: install libsass? use it from command line? use it with task runners like gulp and grunt? I have little experience…
Thoran
  • 8,884
  • 7
  • 41
  • 50
77
votes
13 answers

libsass bindings not found when using node-sass in nodejs

I want to use the node-sass module in my node.js v0.12 application to benefit from the performance of libsass. I executed npm i node-sass to install the module, no errors so far. Now the mess starts: If I just open the REPL in a terminal to try out…
TorbenJ
  • 4,462
  • 11
  • 47
  • 84
18
votes
6 answers

How to use yarn to install bootstrap 4 - libsass libraries

I'm trying to use yarn for my latest project. How to install bootstrap 4 - libsass libraries using yarn
dragonfly
  • 3,203
  • 7
  • 30
  • 52
17
votes
2 answers

Using libsass with compass

Exactly as the title says. Compilation times over 50 seconds are unacceptable. So, is there a way, let's say: a single (partial) file with compass magic (like sprite mixins, etc.), and the rest of files with pure sass? I'm considering moving to less…
Misiur
  • 5,019
  • 8
  • 38
  • 54
14
votes
3 answers

How can I upgrade Libsass with npm?

I'm currently running NPM's node-sass tool, but the version of libsass it is running is 3.2.2, and the version I need to be running is 3.2.4, as this fixes a crucial bug in one of the frameworks I am using. I can find no information on how to build…
marked-down
  • 9,958
  • 22
  • 87
  • 150
11
votes
1 answer

Using libsass with Rails asset pipeline

I'm trying to get libsass to work with the Rails 4 asset pipeline. So far I've cloned the ruby-libsass Gem from Github into the Vendor folder of my application. I added the followig to my gemfile: gem 'sassc', path: 'vendor/ruby-libsass/' I then…
Constant Meiring
  • 3,285
  • 3
  • 40
  • 52
8
votes
3 answers

Is it possible to inject NODE_ENV param into sass file using Webpack & sass loader?

I'm trying to inject NODE_ENV into a sass file, so I can have different output for dev/prod env, and have a sass function that has a condition like that inside it: @if (NODE_ENV == 'prod') {} my webpack.config looks like this: module: { loaders:…
Dima Feldman
  • 708
  • 1
  • 10
  • 17
7
votes
1 answer

What is the algorithm that Sass uses to resolve an @import statement?

The algorithm that Node.js uses to resolve a require() call is very clearly documented in pseudocode. I need the same thing for Sass's @import statement. I know that @import 'foo' will try various combinations of the basenames foo and _foo, with…
callum
  • 34,206
  • 35
  • 106
  • 163
7
votes
6 answers

Gulp Sass not compiling partials

So I am using Gulp Sass with gulp-changed (i've also tried gulp-newer with the updated syntax changes) and watching all the scss files in my folders. When I change a base scss file it will compile without any problems. However if I change a partial…
Jamie Hutber
  • 26,790
  • 46
  • 179
  • 291
6
votes
1 answer

Why can't I build wheel for libsass even though it will install?

When I try to install libsass into a Python 3.5 virtualenv on Ubuntu, I get an error about not being able to build the wheel, but the install still seems to succeed. How do I either a) make the wheel build successfully so I can cache it for new…
Carl
  • 1,039
  • 1
  • 9
  • 13
5
votes
2 answers

Overwriting ASP.NET MVC active stylesheet bundle

I have a stylesheet in my application ~/Content/theme/style.css. It is referenced in my application using standard bundling as such: bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/font-awesome/font-awesome.css", …
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
5
votes
2 answers

How to address node-sass regression(?) "It's not clear which file to import for @import"

It seems that a recent version of node-sass (3.4.1) breaks our build. I am consistently getting this error message: It's not clear which file to import for '@import "../file"'. Candidates: ../file.scss ../file.css Please delete or rename…
Bryan Rayner
  • 4,172
  • 4
  • 26
  • 38
5
votes
4 answers

How can I find out what version of Sass I'm using when running gulp-sass?

I just started using gulp-sass, is there a "easy" way to find out what version of Sass, that is being used? Not that I think it matters too much but I'm using gulp-sass in Visual Studio 2015 (CTP6). I need to know because I want to use a Sass mixin…
Ola Karlsson
  • 9,011
  • 7
  • 27
  • 37
4
votes
2 answers

"Compound selectors may no longer be extended" error being thrown when running "ng serve."

While trying to ng serve I keep getting the same error message. Module build failed (from ./node_modules/sass-loader/lib/loader.js): @extend i.skinny_arrow; ^ Compound selectors may no longer be…
4
votes
0 answers

How properly setup Flask + pypugjs + sass?

I am developing some application with Flask and now I've decided to make the whole process easier with use of pypugjs (it is python port of jade template engine for JS) and SASS. Installing and using pypugjs is easy and smooth, but now I do not…
banderlog013
  • 2,207
  • 24
  • 33
1
2 3
8 9