Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SCSS-compiler alternatives to LibSass for a node app [closed]

Libsass seems to be one of the most popular compilers for SCSS and http://sass-lang.com/libsass lists a wide variety of libsass wrappers for many common programming languages. For a node-app, node-sass and the corresponding loaders for webpack or gulp seem to be the most obvious choice. Installing and using node-sass however requires both github access and a python 2.7 interpreter and for reasons I don't want to discuss here, I have neither in my production environment.

  1. Is there a viable workaround for installing and using node-sass in production environments without github access and python interpreter?
  2. Are there other SCSS - compilers which can be used via webpack or gulp that don't need Github access and/or an installed python interpreter?
like image 345
user1934212 Avatar asked Sep 12 '17 11:09

user1934212


People also ask

What can I replace node sass with?

Sass, Webpack, PostCSS, Compass, and Animate. css are the most popular alternatives and competitors to node-sass.

Is LibSass deprecated?

LibSass is now deprecated—new projects should use Dart Sass instead.

Does node Sass still work?

Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.


2 Answers

While similar to the answer provided by @tsi, I would suggest your build occurs not on a dev machine, but rather a build box.

Some options include Gitlabs CI or Bitbucket pipelines

If you do run it on a dev machine, make sure to do it within Vagrant or Docker to create consistent artifacts.

To answer your second question, no, there doesn't seem to be an alternative

like image 73
Chris Avatar answered Oct 23 '22 01:10

Chris


Unless your app must compile Sass on-the-fly, You should probably compile your styles on the dev machine and push static CSS to your production environment.

like image 3
tsi Avatar answered Oct 23 '22 02:10

tsi