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

前端 未结 3 1701
情书的邮戳
情书的邮戳 2020-11-29 15:39

I was struggling with setting up libsass as it wasn\'t as straight-forward as the Ruby based transpiler. Could someone explain how to:

  1. install libsass?
3条回答
  •  误落风尘
    2020-11-29 16:34

    The installation of these tools may vary on different OS.

    Under Windows, node-sass currently supports VS2015 by default, if you only have VS2013 in your box and meet any error while running the command, you can define the version of VS by adding: --msvs_version=2013. This is noted on the node-sass npm page.

    So, the safe command line that works on Windows with VS2013 is: npm install --msvs_version=2013 gulp node-sass gulp-sass

提交回复
热议问题