Use libsass in Golang

blov · 2015-05-22 13:48:54 · 1015 次点击    
这是一个分享于 2015-05-22 13:48:54 的资源,其中的信息可能已经有所发展或是发生改变。

There is now a Go tool for compiling sass via libsass bindings. You can compile Sass, sprite images (Compass compatible syntax) or link to this library for building your own tools.

https://github.com/wellington/wellington

For large Compass projects, the compile time is 4-5x faster to Ruby equivalents thanks to the speed performances of the C++ library libsass and using Go for image composition.

To use this, download the precompiled libraries on the releases page that do not require libsass. Or it is also available via brew install wellington

To build your own libsass, refer to the libsass project or there is an included Makefile in https://github.com/wellington/go-libsass that will take care of compiling libsass for you.


评论:

SupersonicSpitfire:

There is also https://github.com/yosssi/gcss, which is written in pure Go.


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1015 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传