Compile sass file inside browser

江枫思渺然 提交于 2021-01-27 06:00:20

问题


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.

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.


回答1:


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



来源:https://stackoverflow.com/questions/39485126/compile-sass-file-inside-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!