【问题标题】:Is there a way to build CSS from SASS entirely in the browser?有没有办法完全在浏览器中从 SASS 构建 CSS?
【发布时间】:2016-07-20 05:13:38
【问题描述】:

我知道 node-sass 和 Gulp 需要 NodeJS 运行时来监视和构建 SASS 文件。我希望能够在我的 Web 应用程序中接受 SASS 作为 JavaScript 字符串,并将 CSS 作为字符串输出,然后我可以将其附加到样式表中。我需要 Sass 的预处理功能,但希望避免每次更改 .scss 文件中的基本变量时都进行往返。

【问题讨论】:

    标签: javascript sass gulp


    【解决方案1】:

    Sass.js 可以通过 Emscripting libSass 来做到这一点。通过 JavaScript 编译 Sass 的便捷 API

    来自a commentScottL 2016 年 7 月 20 日 5:46

    【讨论】:

      猜你喜欢
      • 2014-10-26
      • 1970-01-01
      • 1970-01-01
      • 2011-08-11
      • 1970-01-01
      • 2022-06-23
      • 1970-01-01
      • 1970-01-01
      • 2010-10-13
      相关资源
      最近更新 更多