在浏览器中编译sass文件 [英] Compile sass file inside browser

查看:144
本文介绍了在浏览器中编译sass文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的用户创建一个系统,他们可以在其中选择想要包含在项目中的特定SCSS文件.他们通过浏览器执行此操作.一旦他们检查了所有相关的SCSS文件,他们想点击基于浏览器的编译"按钮来生成最终的CSS.

I am trying to go about creating a system for my users where they can select particular SCSS files they would like to be included in the project. They do this through a browser. Once they check off all the related SCSS files, they want to hit a browser based "compile" button to generate the final CSS.

这可能吗?我在网上看了一段时间,但找不到任何东西.我知道有可能在他们的网站上完成引导程序.

Is this possible? I have looked in the web for sometime but was unable to find anything. I know it's possible as I have seen it done for bootstrap, on their website.

有人可以告诉我这是否可行吗?我不希望实现任何后端编码来执行此操作,它需要通过某种javascript插件来完成.

Would someone be able to let me know if this is doable at all? I am not looking to implement any backend coding to do this, it needs to be done via javascript plugin of some sort.

推荐答案

如果您确实需要在客户端中执行此操作,请 http://sass.js.org/

If you really need to do it in the client, sass.js might help you. You can test it here: http://sass.js.org/

这篇关于在浏览器中编译sass文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆