美文网首页
node-sass 安装及编译

node-sass 安装及编译

作者: 尤兜 | 来源:发表于2017-01-19 12:01 被阅读0次

公司需求css用sass写

1、npm安装node-sass ( soft_green\nodejs\node_modules目录下运行 )

$ npm install node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

cmd检查是否安装完毕 

$ node-sass -v

2、编译 ( 目录下 )

compile test.scss to test.css

$ node-sass test.scss  test.css --output-style compressed

$ node-sass --output-style compressed test.scss test.css

仅限个人的安装

相关文章

网友评论

      本文标题:node-sass 安装及编译

      本文链接:https://www.haomeiwen.com/subject/wtlibttx.html